#B040AA

Closest named color: Purply (#983FB2). oklch(56.5% 0.191 329.9), rgb(176, 64, 170).

Aa

White text reads best on this color (5.04:1).

About this color

#B040AA is a medium-dark, vivid purple. In OKLCH its lightness is 57%, its chroma 0.191 and its hue 330°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Purply (#983FB2), ΔE 0.050 away. White text reads best on it, at 5.04:1.

Hue familyPurples
Lightnessmedium-dark (57%)
Chromavivid (0.191)
Temperaturein between
Nearest namePurply (#983FB2)
Black text4.15:1
White text5.04:1

Values

HEX#B040AA
RGBrgb(176, 64, 170)
HSLhsl(303, 47%, 47%)
OKLCHoklch(56.5% 0.191 329.9)

Contrast

WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.

PairWCAG 2ResultAPCAAPCA guidance
White text on #B040AA 5.04:1 AA Lc -79.5 Fine for body text
Black text on #B040AA 4.15:1 AA large text Lc 30.0 Non-text elements, placeholder text
#B040AA text on white 5.04:1 AA Lc 74.0 Content text, not long reading
#B040AA text on black 4.15:1 AA large text Lc -27.7 Dividers and decoration only

Tints and shades

A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 600.

  1. Step 50

    50

    #FAF3F9

    oklch(97.1% 0.011 330.1)

  2. Step 100

    100

    #F4E4F2

    oklch(93.6% 0.025 329.7)

  3. Step 200

    200

    #ECCEE8

    oklch(88.4% 0.048 330.3)

  4. Step 300

    300

    #E1ADDB

    oklch(80.9% 0.086 330.3)

  5. Step 400

    400

    #D07FC9

    oklch(70.7% 0.138 330)

  6. Step 500

    500

    #C25BBB

    oklch(63.1% 0.176 330.1)

  7. Step 600

    600 (this color)

    #B040AA

    oklch(56.5% 0.191 329.9)

  8. Step 700

    700

    #942E8F

    oklch(49.1% 0.177 329.9)

  9. Step 800

    800

    #782874

    oklch(42.7% 0.146 329.8)

  10. Step 900

    900

    #61265E

    oklch(37.6% 0.114 329.6)

  11. Step 950

    950

    #391737

    oklch(26.9% 0.073 329.6)

Export this scale for Tailwind in the Tailwind colors tool

#B040AA with color blindness

Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#3765AD0.198
Deuteranopia (no green cones)#5E74A70.171
Tritanopia (no blue cones)#B64C6F0.103
Achromatopsia (no color)#6F6F6F0.192

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #B040AA

    #B040AA

    oklch(56.5% 0.191 329.9)

  • #008E40

    #008E40

    oklch(56.5% 0.156 150)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #B040AA

    #B040AA

    oklch(56.5% 0.191 329.9)

  • #8952D3

    #8952D3

    oklch(56.5% 0.191 299.9)

  • #C83372

    #C83372

    oklch(56.6% 0.191 359.8)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #B040AA

    #B040AA

    oklch(56.5% 0.191 329.9)

  • #6D8100

    #6D8100

    oklch(56.7% 0.135 119.9)

  • #008978

    #008978

    oklch(56.5% 0.102 180)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #B040AA

    #B040AA

    oklch(56.5% 0.191 329.9)

  • #907200

    #907200

    oklch(56.5% 0.116 90.3)

  • #008596

    #008596

    oklch(56.5% 0.098 210.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #B040AA

    #B040AA

    oklch(56.5% 0.191 329.9)

  • #AD6000

    #AD6000

    oklch(56.6% 0.132 60.3)

  • #008E40

    #008E40

    oklch(56.5% 0.156 150)

  • #007EBA

    #007EBA

    oklch(56.6% 0.13 240.1)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #B040AA, closest first.

No curated palette has a color within ΔE 0.04 of #B040AA.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #B040AA in your product

Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.