#9040B2

Closest named color: Purply (#983FB2). oklch(52.7% 0.182 314.3), rgb(144, 64, 178).

Aa

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

About this color

#9040B2 is a medium-dark, vivid purple. In OKLCH its lightness is 53%, its chroma 0.182 and its hue 314°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Purply (#983FB2), ΔE 0.015 away. White text reads best on it, at 5.89:1.

Hue familyPurples
Lightnessmedium-dark (53%)
Chromavivid (0.182)
Temperaturein between
Nearest namePurply (#983FB2)
Black text3.56:1
White text5.89:1

Values

HEX#9040B2
RGBrgb(144, 64, 178)
HSLhsl(282, 47%, 47%)
OKLCHoklch(52.7% 0.182 314.3)

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 #9040B2 5.89:1 AA Lc -84.1 Fine for body text
Black text on #9040B2 3.56:1 AA large text Lc 25.2 Dividers and decoration only
#9040B2 text on white 5.89:1 AA Lc 78.8 Fine for body text
#9040B2 text on black 3.56:1 AA large text Lc -23.0 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

    #F8F3FB

    oklch(97% 0.012 313.2)

  2. Step 100

    100

    #F0E5F5

    oklch(93.5% 0.024 315.5)

  3. Step 200

    200

    #E4D1EF

    oklch(88.5% 0.045 313.3)

  4. Step 300

    300

    #D4B1E6

    oklch(80.8% 0.082 314.1)

  5. Step 400

    400

    #BE86D9

    oklch(70.6% 0.132 314.2)

  6. Step 500

    500

    #AE65CF

    oklch(63.1% 0.169 314.3)

  7. Step 600

    600 (this color)

    #9040B2

    oklch(52.7% 0.182 314.3)

  8. Step 700

    700

    #833AA2

    oklch(49.2% 0.169 314.3)

  9. Step 800

    800

    #6A3183

    oklch(42.7% 0.14 314.2)

  10. Step 900

    900

    #562C69

    oklch(37.6% 0.109 314.2)

  11. Step 950

    950

    #331B3E

    oklch(27.2% 0.069 314.3)

Export this scale for Tailwind in the Tailwind colors tool

#9040B2 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)#1060B50.171
Deuteranopia (no green cones)#3C66AF0.148
Tritanopia (no blue cones)#8D55730.120
Achromatopsia (no color)#6464640.184

Harmonies

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

Complementary

The opposite hue (180°).

  • #9040B2

    #9040B2

    oklch(52.7% 0.182 314.3)

  • #427C00

    #427C00

    oklch(52.6% 0.151 134.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #9040B2

    #9040B2

    oklch(52.7% 0.182 314.3)

  • #6353CE

    #6353CE

    oklch(52.7% 0.183 284.1)

  • #AD3084

    #AD3084

    oklch(52.6% 0.182 344)

Open the analogous palette in the generator

Split complementary

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

  • #9040B2

    #9040B2

    oklch(52.7% 0.182 314.3)

  • #766D00

    #766D00

    oklch(52.6% 0.111 103.8)

  • #007E59

    #007E59

    oklch(52.5% 0.112 164.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #9040B2

    #9040B2

    oklch(52.7% 0.182 314.3)

  • #905F00

    #905F00

    oklch(52.6% 0.111 74.1)

  • #007B7A

    #007B7A

    oklch(52.7% 0.09 193.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #9040B2

    #9040B2

    oklch(52.7% 0.182 314.3)

  • #AF4500

    #AF4500

    oklch(52.7% 0.153 44.2)

  • #427C00

    #427C00

    oklch(52.6% 0.151 134.2)

  • #007695

    #007695

    oklch(52.6% 0.099 224.4)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

Use #9040B2 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.