#904ECD

Closest named color: Purpley (#8756E4). oklch(56.3% 0.191 304.9), rgb(144, 78, 205).

Aa

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

About this color

#904ECD is a medium-dark, vivid purple. In OKLCH its lightness is 56%, its chroma 0.191 and its hue 305°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Purpley (#8756E4), ΔE 0.041 away. White text reads best on it, at 5.05:1.

Hue familyPurples
Lightnessmedium-dark (56%)
Chromavivid (0.191)
Temperaturein between
Nearest namePurpley (#8756E4)
Black text4.15:1
White text5.05:1

Values

HEX#904ECD
RGBrgb(144, 78, 205)
HSLhsl(271, 56%, 55%)
OKLCHoklch(56.3% 0.191 304.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 #904ECD 5.05:1 AA Lc -79.8 Fine for body text
Black text on #904ECD 4.15:1 AA large text Lc 29.7 Dividers and decoration only
#904ECD text on white 5.05:1 AA Lc 74.4 Content text, not long reading
#904ECD text on black 4.15:1 AA large text Lc -27.3 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

    #F7F4FC

    oklch(97.2% 0.011 303.1)

  2. Step 100

    100

    #EDE6F8

    oklch(93.6% 0.025 303.5)

  3. Step 200

    200

    #E0D2F3

    oklch(88.5% 0.047 304.6)

  4. Step 300

    300

    #CDB3EE

    oklch(80.9% 0.086 304.6)

  5. Step 400

    400

    #B589E5

    oklch(70.7% 0.138 305.2)

  6. Step 500

    500

    #A368DD

    oklch(63.1% 0.176 305.2)

  7. Step 600

    600 (this color)

    #904ECD

    oklch(56.3% 0.191 304.9)

  8. Step 700

    700

    #793CAF

    oklch(49.1% 0.177 305.1)

  9. Step 800

    800

    #62338E

    oklch(42.7% 0.146 304.7)

  10. Step 900

    900

    #502E71

    oklch(37.7% 0.114 305)

  11. Step 950

    950

    #2F1B42

    oklch(26.9% 0.073 305.8)

Export this scale for Tailwind in the Tailwind colors tool

#904ECD 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)#006DD10.158
Deuteranopia (no green cones)#2F6FCA0.143
Tritanopia (no blue cones)#8568860.139
Achromatopsia (no color)#6F6F6F0.192

Harmonies

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

Complementary

The opposite hue (180°).

  • #904ECD

    #904ECD

    oklch(56.3% 0.191 304.9)

  • #628200

    #628200

    oklch(56.1% 0.141 125)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #904ECD

    #904ECD

    oklch(56.3% 0.191 304.9)

  • #5963E3

    #5963E3

    oklch(56.3% 0.192 275)

  • #B43CA1

    #B43CA1

    oklch(56.2% 0.191 334.7)

Open the analogous palette in the generator

Split complementary

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

  • #904ECD

    #904ECD

    oklch(56.3% 0.191 304.9)

  • #8B7300

    #8B7300

    oklch(56.2% 0.115 94.4)

  • #008C4F

    #008C4F

    oklch(56.2% 0.139 155)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #904ECD

    #904ECD

    oklch(56.3% 0.191 304.9)

  • #A76300

    #A76300

    oklch(56.3% 0.126 65)

  • #00887D

    #00887D

    oklch(56.4% 0.099 184.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #904ECD

    #904ECD

    oklch(56.3% 0.191 304.9)

  • #CD380D

    #CD380D

    oklch(56.3% 0.192 34.8)

  • #628200

    #628200

    oklch(56.1% 0.141 125)

  • #008399

    #008399

    oklch(56.1% 0.099 215)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #904ECD 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.