#4C227A

Closest named color: Indigo (#4B0082). oklch(36.1% 0.142 301.4), rgb(76, 34, 122).

Aa

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

About this color

#4C227A is a dark, vivid purple. In OKLCH its lightness is 36%, its chroma 0.142 and its hue 301°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Indigo (#4B0082), ΔE 0.043 away. White text reads best on it, at 11.55:1.

Hue familyPurples
Lightnessdark (36%)
Chromavivid (0.142)
Temperaturein between
Nearest nameIndigo (#4B0082)
Black text1.81:1
White text11.55:1

Values

HEX#4C227A
RGBrgb(76, 34, 122)
HSLhsl(269, 56%, 31%)
OKLCHoklch(36.1% 0.142 301.4)

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 #4C227A 11.55:1 AAA Lc -99.7 Preferred for body text
Black text on #4C227A 1.81:1 Fails Lc 7.9 Not readable
#4C227A text on white 11.55:1 AAA Lc 96.0 Preferred for body text
#4C227A text on black 1.81:1 Fails Lc 0.0 Not readable

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 900.

  1. Step 50

    50

    #F7F3FE

    oklch(97% 0.015 302.6)

  2. Step 100

    100

    #EDE6FC

    oklch(93.7% 0.03 300.3)

  3. Step 200

    200

    #E0D1FB

    oklch(88.6% 0.059 301.5)

  4. Step 300

    300

    #CDB1FB

    oklch(81% 0.106 301.4)

  5. Step 400

    400

    #B483F8

    oklch(70.6% 0.171 301.5)

  6. Step 500

    500

    #A35EF5

    oklch(63.2% 0.218 301.5)

  7. Step 600

    600

    #8F3CE3

    oklch(55.6% 0.236 301.6)

  8. Step 700

    700

    #7A2CC6

    oklch(49.2% 0.22 301.4)

  9. Step 800

    800

    #6327A0

    oklch(42.7% 0.183 301.5)

  10. Step 900

    900 (this color)

    #4C227A

    oklch(36.1% 0.142 301.4)

  11. Step 950

    950

    #2F184A

    oklch(27% 0.09 301.9)

Export this scale for Tailwind in the Tailwind colors tool

#4C227A 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)#00387D0.102
Deuteranopia (no green cones)#0038780.103
Tritanopia (no blue cones)#42374B0.106
Achromatopsia (no color)#3939390.143

Harmonies

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

Complementary

The opposite hue (180°).

  • #4C227A

    #4C227A

    oklch(36.1% 0.142 301.4)

  • #374400

    #374400

    oklch(36.2% 0.087 121.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #4C227A

    #4C227A

    oklch(36.1% 0.142 301.4)

  • #263186

    #263186

    oklch(36.1% 0.141 271.6)

  • #64145E

    #64145E

    oklch(36.1% 0.141 331.4)

Open the analogous palette in the generator

Split complementary

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

  • #4C227A

    #4C227A

    oklch(36.1% 0.142 301.4)

  • #4C3B00

    #4C3B00

    oklch(36.1% 0.074 90.5)

  • #004B21

    #004B21

    oklch(36.1% 0.097 151.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #4C227A

    #4C227A

    oklch(36.1% 0.142 301.4)

  • #5C3100

    #5C3100

    oklch(36.1% 0.084 61.1)

  • #004840

    #004840

    oklch(36% 0.064 182.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #4C227A

    #4C227A

    oklch(36.1% 0.142 301.4)

  • #760C00

    #760C00

    oklch(36.2% 0.14 31.3)

  • #374400

    #374400

    oklch(36.2% 0.087 121.2)

  • #004650

    #004650

    oklch(36.1% 0.063 210.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #4C227A 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.