#5D398C

Closest named color: Rebecca Purple (#663399). oklch(42.9% 0.134 300.9), rgb(93, 57, 140).

Aa

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

About this color

#5D398C is a dark, moderately saturated purple. In OKLCH its lightness is 43%, its chroma 0.134 and its hue 301°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Rebecca Purple (#663399), ΔE 0.030 away. White text reads best on it, at 8.64:1.

Hue familyPurples
Lightnessdark (43%)
Chromamoderately saturated (0.134)
Temperaturein between
Nearest nameRebecca Purple (#663399)
Black text2.42:1
White text8.64:1

Values

HEX#5D398C
RGBrgb(93, 57, 140)
HSLhsl(266, 42%, 39%)
OKLCHoklch(42.9% 0.134 300.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 #5D398C 8.64:1 AAA Lc -93.9 Preferred for body text
Black text on #5D398C 2.42:1 Fails Lc 14.7 Not readable
#5D398C text on white 8.64:1 AAA Lc 89.3 Fine for body text
#5D398C text on black 2.42:1 Fails Lc -12.9 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

    #F6F4FC

    oklch(97.1% 0.011 297.6)

  2. Step 100

    100

    #ECE7F7

    oklch(93.7% 0.022 300.2)

  3. Step 200

    200

    #DED3F2

    oklch(88.5% 0.044 301.7)

  4. Step 300

    300

    #C9B5EC

    oklch(80.8% 0.079 301.3)

  5. Step 400

    400

    #AE8DE2

    oklch(70.7% 0.125 301.1)

  6. Step 500

    500

    #9B6FDA

    oklch(63.2% 0.16 300.9)

  7. Step 600

    600

    #8654C7

    oklch(55.6% 0.173 301)

  8. Step 700

    700

    #7244AC

    oklch(49.2% 0.161 301.1)

  9. Step 800

    800 (this color)

    #5D398C

    oklch(42.9% 0.134 300.9)

  10. Step 900

    900

    #4B326F

    oklch(37.7% 0.103 300.5)

  11. Step 950

    950

    #2C1E41

    oklch(27.1% 0.065 300.6)

Export this scale for Tailwind in the Tailwind colors tool

#5D398C 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)#124B8F0.100
Deuteranopia (no green cones)#224B8A0.091
Tritanopia (no blue cones)#534A5D0.101
Achromatopsia (no color)#4C4C4C0.134

Harmonies

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

Complementary

The opposite hue (180°).

  • #5D398C

    #5D398C

    oklch(42.9% 0.134 300.9)

  • #485700

    #485700

    oklch(42.9% 0.102 120.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5D398C

    #5D398C

    oklch(42.9% 0.134 300.9)

  • #364798

    #364798

    oklch(43% 0.133 270.9)

  • #772E71

    #772E71

    oklch(43.1% 0.133 330.9)

Open the analogous palette in the generator

Split complementary

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

  • #5D398C

    #5D398C

    oklch(42.9% 0.134 300.9)

  • #624D00

    #624D00

    oklch(43% 0.088 90.6)

  • #00602C

    #00602C

    oklch(42.8% 0.115 151.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5D398C

    #5D398C

    oklch(42.9% 0.134 300.9)

  • #764000

    #764000

    oklch(42.9% 0.1 60.6)

  • #005D52

    #005D52

    oklch(42.9% 0.077 181.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5D398C

    #5D398C

    oklch(42.9% 0.134 300.9)

  • #8A291C

    #8A291C

    oklch(42.9% 0.134 30.8)

  • #485700

    #485700

    oklch(42.9% 0.102 120.5)

  • #005A67

    #005A67

    oklch(42.9% 0.075 211.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #5D398C 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.