#5F31A4

Closest named color: Rebecca Purple (#663399). oklch(43.8% 0.175 296.9), rgb(95, 49, 164).

Aa

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

About this color

#5F31A4 is a dark, vivid purple. In OKLCH its lightness is 44%, its chroma 0.175 and its hue 297°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Rebecca Purple (#663399), ΔE 0.024 away. White text reads best on it, at 8.52:1.

Hue familyPurples
Lightnessdark (44%)
Chromavivid (0.175)
Temperaturein between
Nearest nameRebecca Purple (#663399)
Black text2.46:1
White text8.52:1

Values

HEX#5F31A4
RGBrgb(95, 49, 164)
HSLhsl(264, 54%, 42%)
OKLCHoklch(43.8% 0.175 296.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 #5F31A4 8.52:1 AAA Lc -93.3 Preferred for body text
Black text on #5F31A4 2.46:1 Fails Lc 15.3 Dividers and decoration only
#5F31A4 text on white 8.52:1 AAA Lc 88.7 Fine for body text
#5F31A4 text on black 2.46:1 Fails Lc -13.5 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

    #F6F4FE

    oklch(97.2% 0.013 295.3)

  2. Step 100

    100

    #EBE6FC

    oklch(93.5% 0.03 296.2)

  3. Step 200

    200

    #DCD2FB

    oklch(88.5% 0.057 296.4)

  4. Step 300

    300

    #C7B3FB

    oklch(80.9% 0.102 296.8)

  5. Step 400

    400

    #AC88F9

    oklch(70.8% 0.163 296.7)

  6. Step 500

    500

    #9964F6

    oklch(63.1% 0.209 296.7)

  7. Step 600

    600

    #8545E4

    oklch(55.6% 0.226 296.7)

  8. Step 700

    700

    #7134C6

    oklch(49% 0.211 296.8)

  9. Step 800

    800 (this color)

    #5F31A4

    oklch(43.8% 0.175 296.9)

  10. Step 900

    900

    #4B2B7F

    oklch(37.7% 0.135 296.9)

  11. Step 950

    950

    #2C1A4B

    oklch(27% 0.087 297.1)

Export this scale for Tailwind in the Tailwind colors tool

#5F31A4 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)#004DA70.113
Deuteranopia (no green cones)#004BA20.113
Tritanopia (no blue cones)#4D4D670.133
Achromatopsia (no color)#4C4C4C0.176

Harmonies

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

Complementary

The opposite hue (180°).

  • #5F31A4

    #5F31A4

    oklch(43.8% 0.175 296.9)

  • #4F5800

    #4F5800

    oklch(43.7% 0.1 116.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5F31A4

    #5F31A4

    oklch(43.8% 0.175 296.9)

  • #2745B0

    #2745B0

    oklch(43.8% 0.174 266.8)

  • #801E83

    #801E83

    oklch(43.8% 0.175 326.8)

Open the analogous palette in the generator

Split complementary

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

  • #5F31A4

    #5F31A4

    oklch(43.8% 0.175 296.9)

  • #674E00

    #674E00

    oklch(43.8% 0.09 87.3)

  • #006420

    #006420

    oklch(43.8% 0.131 146.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5F31A4

    #5F31A4

    oklch(43.8% 0.175 296.9)

  • #7C4000

    #7C4000

    oklch(43.8% 0.106 57.4)

  • #006051

    #006051

    oklch(43.7% 0.081 177.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5F31A4

    #5F31A4

    oklch(43.8% 0.175 296.9)

  • #9C0711

    #9C0711

    oklch(43.8% 0.175 26.9)

  • #4F5800

    #4F5800

    oklch(43.7% 0.1 116.4)

  • #005D67

    #005D67

    oklch(43.7% 0.075 207.5)

Open the square palette in the generator

Palettes with this color

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

No curated palette has a color within ΔE 0.04 of #5F31A4.

Similar named colors

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

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