#CB31EF

Closest named color: Hot Purple (#CB00F5). oklch(63.2% 0.274 318.9), rgb(203, 49, 239).

Aa

Black text reads best on this color (5.22:1).

About this color

#CB31EF is a medium-light, vivid purple. In OKLCH its lightness is 63%, its chroma 0.274 and its hue 319°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Hot Purple (#CB00F5), ΔE 0.029 away. Black text reads best on it, at 5.22:1.

Hue familyPurples
Lightnessmedium-light (63%)
Chromavivid (0.274)
Temperaturein between
Nearest nameHot Purple (#CB00F5)
Black text5.22:1
White text4.01:1

Values

HEX#CB31EF
RGBrgb(203, 49, 239)
HSLhsl(289, 86%, 56%)
OKLCHoklch(63.2% 0.274 318.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 #CB31EF 4.01:1 AA large text Lc -71.5 Content text, not long reading
Black text on #CB31EF 5.22:1 AA Lc 38.1 Non-text elements, placeholder text
#CB31EF text on white 4.01:1 AA large text Lc 65.9 Content text, not long reading
#CB31EF text on black 5.22:1 AA Lc -35.7 Non-text elements, placeholder text

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 500.

  1. Step 50

    50

    #FBF2FD

    oklch(97.1% 0.017 320.1)

  2. Step 100

    100

    #F5E2FB

    oklch(93.5% 0.039 318.1)

  3. Step 200

    200

    #EFCAF9

    oklch(88.5% 0.075 319)

  4. Step 300

    300

    #E6A4F8

    oklch(81% 0.134 318.9)

  5. Step 400

    400

    #D76BF3

    oklch(70.6% 0.214 319)

  6. Step 500

    500 (this color)

    #CB31EF

    oklch(63.2% 0.274 318.9)

  7. Step 600

    600

    #B100D3

    oklch(55.7% 0.268 319)

  8. Step 700

    700

    #9500B3

    oklch(49.1% 0.237 318.7)

  9. Step 800

    800

    #7B0094

    oklch(42.7% 0.206 318.8)

  10. Step 900

    900

    #67047B

    oklch(37.7% 0.178 319.2)

  11. Step 950

    950

    #3C0A48

    oklch(26.9% 0.113 318.8)

Export this scale for Tailwind in the Tailwind colors tool

#CB31EF 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)#0075F40.258
Deuteranopia (no green cones)#3F83EB0.240
Tritanopia (no blue cones)#CA5D920.169
Achromatopsia (no color)#7F7F7F0.276

Harmonies

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

Complementary

The opposite hue (180°).

  • #CB31EF

    #CB31EF

    oklch(63.2% 0.274 318.9)

  • #3CA400

    #3CA400

    oklch(63.3% 0.199 138.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #CB31EF

    #CB31EF

    oklch(63.2% 0.274 318.9)

  • #8A6AFF

    #8A6AFF

    oklch(63.2% 0.212 288.7)

  • #F000A3

    #F000A3

    oklch(63.1% 0.265 348.7)

Open the analogous palette in the generator

Split complementary

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

  • #CB31EF

    #CB31EF

    oklch(63.2% 0.274 318.9)

  • #918F00

    #918F00

    oklch(63.1% 0.137 108.8)

  • #00A27C

    #00A27C

    oklch(63.3% 0.127 168.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #CB31EF

    #CB31EF

    oklch(63.2% 0.274 318.9)

  • #B47E00

    #B47E00

    oklch(63.1% 0.131 78.5)

  • #009DA2

    #009DA2

    oklch(63.2% 0.107 198.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #CB31EF

    #CB31EF

    oklch(63.2% 0.274 318.9)

  • #D86200

    #D86200

    oklch(63.2% 0.17 48.6)

  • #3CA400

    #3CA400

    oklch(63.3% 0.199 138.8)

  • #0097C5

    #0097C5

    oklch(63.2% 0.124 228.7)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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