#6D31A7

Closest named color: Rebecca Purple (#663399). oklch(45.7% 0.18 303.1), rgb(109, 49, 167).

Aa

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

About this color

#6D31A7 is a medium-dark, vivid purple. In OKLCH its lightness is 46%, its chroma 0.180 and its hue 303°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Rebecca Purple (#663399), ΔE 0.026 away. White text reads best on it, at 7.93:1.

Hue familyPurples
Lightnessmedium-dark (46%)
Chromavivid (0.180)
Temperaturein between
Nearest nameRebecca Purple (#663399)
Black text2.64:1
White text7.93:1

Values

HEX#6D31A7
RGBrgb(109, 49, 167)
HSLhsl(271, 55%, 42%)
OKLCHoklch(45.7% 0.18 303.1)

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 #6D31A7 7.93:1 AAA Lc -91.5 Preferred for body text
Black text on #6D31A7 2.64:1 Fails Lc 17.2 Dividers and decoration only
#6D31A7 text on white 7.93:1 AAA Lc 86.8 Fine for body text
#6D31A7 text on black 2.64:1 Fails Lc -15.3 Dividers and decoration only

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

    #F7F3FE

    oklch(97% 0.015 302.6)

  2. Step 100

    100

    #EEE5FB

    oklch(93.5% 0.031 304.3)

  3. Step 200

    200

    #E1D0FA

    oklch(88.5% 0.06 303.6)

  4. Step 300

    300

    #CEB0F9

    oklch(80.9% 0.106 302.9)

  5. Step 400

    400

    #B683F6

    oklch(70.7% 0.169 302.8)

  6. Step 500

    500

    #A55DF2

    oklch(63% 0.216 302.9)

  7. Step 600

    600

    #913CE0

    oklch(55.6% 0.234 303)

  8. Step 700

    700

    #7C2BC3

    oklch(49.1% 0.219 303.1)

  9. Step 800

    800 (this color)

    #6D31A7

    oklch(45.7% 0.18 303.1)

  10. Step 900

    900

    #52277D

    oklch(37.8% 0.14 303.2)

  11. Step 950

    950

    #301849

    oklch(27% 0.089 303.6)

Export this scale for Tailwind in the Tailwind colors tool

#6D31A7 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)#0050AA0.134
Deuteranopia (no green cones)#0051A50.136
Tritanopia (no blue cones)#614D680.133
Achromatopsia (no color)#5151510.181

Harmonies

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

Complementary

The opposite hue (180°).

  • #6D31A7

    #6D31A7

    oklch(45.7% 0.18 303.1)

  • #4B6000

    #4B6000

    oklch(45.5% 0.112 123.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #6D31A7

    #6D31A7

    oklch(45.7% 0.18 303.1)

  • #3B45B9

    #3B45B9

    oklch(45.7% 0.18 273.1)

  • #8D1D81

    #8D1D81

    oklch(45.7% 0.181 333.1)

Open the analogous palette in the generator

Split complementary

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

  • #6D31A7

    #6D31A7

    oklch(45.7% 0.18 303.1)

  • #695500

    #695500

    oklch(45.6% 0.093 93)

  • #006936

    #006936

    oklch(45.7% 0.117 153.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #6D31A7

    #6D31A7

    oklch(45.7% 0.18 303.1)

  • #7F4800

    #7F4800

    oklch(45.8% 0.104 63.1)

  • #00665B

    #00665B

    oklch(45.8% 0.082 182.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #6D31A7

    #6D31A7

    oklch(45.7% 0.18 303.1)

  • #9F1E00

    #9F1E00

    oklch(45.6% 0.168 33.1)

  • #4B6000

    #4B6000

    oklch(45.5% 0.112 123.2)

  • #006272

    #006272

    oklch(45.6% 0.08 213.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #6D31A7 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.