#7D227C

Closest named color: Purple (#800080). oklch(43.3% 0.163 328.4), rgb(125, 34, 124).

Aa

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

About this color

#7D227C is a dark, vivid purple. In OKLCH its lightness is 43%, its chroma 0.163 and its hue 328°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Purple (#800080), ΔE 0.032 away. White text reads best on it, at 8.77:1.

Hue familyPurples
Lightnessdark (43%)
Chromavivid (0.163)
Temperaturein between
Nearest namePurple (#800080)
Black text2.39:1
White text8.77:1

Values

HEX#7D227C
RGBrgb(125, 34, 124)
HSLhsl(301, 57%, 31%)
OKLCHoklch(43.3% 0.163 328.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 #7D227C 8.77:1 AAA Lc -93.6 Preferred for body text
Black text on #7D227C 2.39:1 Fails Lc 14.9 Not readable
#7D227C text on white 8.77:1 AAA Lc 89.1 Fine for body text
#7D227C text on black 2.39:1 Fails Lc -13.2 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 800.

  1. Step 50

    50

    #FAF3FA

    oklch(97.2% 0.012 325.7)

  2. Step 100

    100

    #F5E4F3

    oklch(93.7% 0.027 329.5)

  3. Step 200

    200

    #EDCDEB

    oklch(88.4% 0.053 328)

  4. Step 300

    300

    #E3ABE0

    oklch(81% 0.095 328.2)

  5. Step 400

    400

    #D37BD0

    oklch(70.7% 0.153 328.3)

  6. Step 500

    500

    #C554C3

    oklch(63% 0.195 328.3)

  7. Step 600

    600

    #B132AF

    oklch(55.6% 0.212 328.6)

  8. Step 700

    700

    #982397

    oklch(49.2% 0.197 328.5)

  9. Step 800

    800 (this color)

    #7D227C

    oklch(43.3% 0.163 328.4)

  10. Step 900

    900

    #642162

    oklch(37.7% 0.128 329)

  11. Step 950

    950

    #3B153A

    oklch(27.1% 0.081 328.6)

Export this scale for Tailwind in the Tailwind colors tool

#7D227C 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)#14437F0.174
Deuteranopia (no green cones)#3B4F7A0.147
Tritanopia (no blue cones)#812F4D0.089
Achromatopsia (no color)#4B4B4B0.165

Harmonies

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

Complementary

The opposite hue (180°).

  • #7D227C

    #7D227C

    oklch(43.3% 0.163 328.4)

  • #006225

    #006225

    oklch(43.3% 0.124 148.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #7D227C

    #7D227C

    oklch(43.3% 0.163 328.4)

  • #5E329C

    #5E329C

    oklch(43.2% 0.164 298.3)

  • #90134F

    #90134F

    oklch(43.3% 0.163 358.7)

Open the analogous palette in the generator

Split complementary

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

  • #7D227C

    #7D227C

    oklch(43.3% 0.163 328.4)

  • #4C5700

    #4C5700

    oklch(43.2% 0.1 117.9)

  • #005E51

    #005E51

    oklch(43.1% 0.079 179)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #7D227C

    #7D227C

    oklch(43.3% 0.163 328.4)

  • #644D00

    #644D00

    oklch(43.2% 0.088 88.8)

  • #005C66

    #005C66

    oklch(43.4% 0.075 207.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #7D227C

    #7D227C

    oklch(43.3% 0.163 328.4)

  • #793F00

    #793F00

    oklch(43.2% 0.103 58)

  • #006225

    #006225

    oklch(43.3% 0.124 148.4)

  • #00577F

    #00577F

    oklch(43.4% 0.096 238)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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