#4D2040

Closest named color: Grape Purple (#5D1451). oklch(32.1% 0.081 339.7), rgb(77, 32, 64).

Aa

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

About this color

#4D2040 is a dark, moderately saturated purple. In OKLCH its lightness is 32%, its chroma 0.081 and its hue 340°. Its hue sits on the warm side of the wheel. The nearest named color is Grape Purple (#5D1451), ΔE 0.051 away. White text reads best on it, at 13.15:1.

Hue familyPurples
Lightnessdark (32%)
Chromamoderately saturated (0.081)
Temperaturewarm
Nearest nameGrape Purple (#5D1451)
Black text1.59:1
White text13.15:1

Values

HEX#4D2040
RGBrgb(77, 32, 64)
HSLhsl(317, 41%, 21%)
OKLCHoklch(32.1% 0.081 339.7)

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 #4D2040 13.15:1 AAA Lc -102.4 Preferred for body text
Black text on #4D2040 1.59:1 Fails Lc 0.0 Not readable
#4D2040 text on white 13.15:1 AAA Lc 99.1 Preferred for body text
#4D2040 text on black 1.59: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 950.

  1. Step 50

    50

    #FCF2F8

    oklch(97.1% 0.013 340.5)

  2. Step 100

    100

    #F7E3F0

    oklch(93.6% 0.028 338.6)

  3. Step 200

    200

    #F2CCE4

    oklch(88.5% 0.053 340)

  4. Step 300

    300

    #EBA8D4

    oklch(80.8% 0.097 340)

  5. Step 400

    400

    #DE77BF

    oklch(70.7% 0.154 339.7)

  6. Step 500

    500

    #D24EAF

    oklch(63.2% 0.197 339.6)

  7. Step 600

    600

    #BD289A

    oklch(55.6% 0.214 339.7)

  8. Step 700

    700

    #A31783

    oklch(49.1% 0.199 340.1)

  9. Step 800

    800

    #84196B

    oklch(42.7% 0.164 339.7)

  10. Step 900

    900

    #6A1D57

    oklch(37.6% 0.129 339.3)

  11. Step 950

    950 (this color)

    #4D2040

    oklch(32.1% 0.081 339.7)

Export this scale for Tailwind in the Tailwind colors tool

#4D2040 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)#222C410.085
Deuteranopia (no green cones)#2F333F0.076
Tritanopia (no blue cones)#51212D0.036
Achromatopsia (no color)#3030300.082

Harmonies

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

Complementary

The opposite hue (180°).

  • #4D2040

    #4D2040

    oklch(32.1% 0.081 339.7)

  • #003E25

    #003E25

    oklch(32.1% 0.074 159.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #4D2040

    #4D2040

    oklch(32.1% 0.081 339.7)

  • #3F2552

    #3F2552

    oklch(32% 0.082 309.1)

  • #541E2A

    #541E2A

    oklch(32% 0.081 9.2)

Open the analogous palette in the generator

Split complementary

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

  • #4D2040

    #4D2040

    oklch(32.1% 0.081 339.7)

  • #253B04

    #253B04

    oklch(32.2% 0.082 129.8)

  • #003C39

    #003C39

    oklch(32.1% 0.056 189.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #4D2040

    #4D2040

    oklch(32.1% 0.081 339.7)

  • #3B3300

    #3B3300

    oklch(32% 0.066 99.7)

  • #003A47

    #003A47

    oklch(32.2% 0.058 218.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #4D2040

    #4D2040

    oklch(32.1% 0.081 339.7)

  • #492B00

    #492B00

    oklch(31.9% 0.07 69.3)

  • #003E25

    #003E25

    oklch(32.1% 0.074 159.2)

  • #09355A

    #09355A

    oklch(32.2% 0.08 249.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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