#B040A6

Closest named color: Purply (#983FB2). oklch(56.3% 0.187 331.5), rgb(176, 64, 166).

Aa

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

About this color

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

Hue familyPurples
Lightnessmedium-dark (56%)
Chromavivid (0.187)
Temperaturein between
Nearest namePurply (#983FB2)
Black text4.13:1
White text5.08:1

Values

HEX#B040A6
RGBrgb(176, 64, 166)
HSLhsl(305, 47%, 47%)
OKLCHoklch(56.3% 0.187 331.5)

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 #B040A6 5.08:1 AA Lc -79.7 Fine for body text
Black text on #B040A6 4.13:1 AA large text Lc 29.8 Dividers and decoration only
#B040A6 text on white 5.08:1 AA Lc 74.3 Content text, not long reading
#B040A6 text on black 4.13:1 AA large text Lc -27.4 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

    #F4E4F1

    oklch(93.5% 0.024 331.9)

  3. Step 200

    200

    #ECCEE7

    oklch(88.4% 0.047 331.5)

  4. Step 300

    300

    #E1ADD9

    oklch(80.9% 0.084 331.7)

  5. Step 400

    400

    #D07FC6

    oklch(70.6% 0.135 331.5)

  6. Step 500

    500

    #C25CB8

    oklch(63.1% 0.172 331.2)

  7. Step 600

    600 (this color)

    #B040A6

    oklch(56.3% 0.187 331.5)

  8. Step 700

    700

    #952E8C

    oklch(49.1% 0.175 331.6)

  9. Step 800

    800

    #792872

    oklch(42.7% 0.145 331.4)

  10. Step 900

    900

    #62265C

    oklch(37.7% 0.113 331.6)

  11. Step 950

    950

    #3A1736

    oklch(27% 0.072 331.9)

Export this scale for Tailwind in the Tailwind colors tool

#B040A6 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)#3A64A90.196
Deuteranopia (no green cones)#6074A30.170
Tritanopia (no blue cones)#B74B6D0.100
Achromatopsia (no color)#6E6E6E0.189

Harmonies

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

Complementary

The opposite hue (180°).

  • #B040A6

    #B040A6

    oklch(56.3% 0.187 331.5)

  • #008D45

    #008D45

    oklch(56.3% 0.15 151.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #B040A6

    #B040A6

    oklch(56.3% 0.187 331.5)

  • #8B52CF

    #8B52CF

    oklch(56.4% 0.187 301.7)

  • #C6346E

    #C6346E

    oklch(56.3% 0.187 1.3)

Open the analogous palette in the generator

Split complementary

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

  • #B040A6

    #B040A6

    oklch(56.3% 0.187 331.5)

  • #698100

    #698100

    oklch(56.4% 0.136 121.7)

  • #008879

    #008879

    oklch(56.2% 0.101 181.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #B040A6

    #B040A6

    oklch(56.3% 0.187 331.5)

  • #8E7200

    #8E7200

    oklch(56.3% 0.115 91.6)

  • #008496

    #008496

    oklch(56.3% 0.098 211.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #B040A6

    #B040A6

    oklch(56.3% 0.187 331.5)

  • #AB6000

    #AB6000

    oklch(56.3% 0.131 61.1)

  • #008D45

    #008D45

    oklch(56.3% 0.15 151.5)

  • #007DBB

    #007DBB

    oklch(56.4% 0.132 241.1)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

Use #B040A6 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.