#CE31C8#CE31C8

#CE31C8 is a mid, highly saturated purple. Relative luminance 0.195; OKLCH L 61.2% C 0.246 H 329.8°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#CE31C8
RGBrgb(206, 49, 200)
HSLhsl(302, 62%, 50%)
HSVhsv(302, 76%, 81%)
CMYKcmyk(0%, 76.2%, 2.9%, 19.2%)
CIE-LABlab(51.26, 75.10, -44.70)
CIE-LCHlch(51.26, 87.40, 329.24°)
OKLaboklab(61.24% 0.2123 -0.1236)
OKLCHoklch(61.24% 0.246 329.8)
XYZxyz(36.9770, 19.4915, 56.4471)
Luminance0.1949 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CE31C8 #31CE37
analogous
#8631CE #CE31C8 #CE3179
triadic
#CE31C8 #C8CE31 #31C8CE
tetradic
#CE31C8 #CE8631 #31CE37 #3179CE
square
#CE31C8 #CE8631 #31CE37 #3179CE
split-complementary
#CE31C8 #79CE31 #31CE86
monochromatic
#6B1968 #9D2598 #CE31C8 #DA62D5 #E694E2

Accessibility & contrast

On white

4.29
#CE31C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#CE31C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CE31C8
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CE31C8#FFFFFF#000000##000000
##CE31C81.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#166DCC
Deuteranopia (green-blind)
#6281C4
Tritanopia (blue-blind)
#D6487B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ce31c8;
/* rgb */ color: rgb(206, 49, 200);
/* oklch */ color: oklch(61.2% 0.246 329.8);
Tailwind
colors: {
  custom: {
    50: '#e17bd9',
    500: '#ce31c8',
    950: '#000000',
  },
}
SCSS
$custom: #ce31c8;
$custom-light: #e17bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#ce31c8",
  "rgb": {
    "r": 206,
    "g": 49,
    "b": 200
  },
  "hsl": {
    "h": 302.293,
    "s": 61.569,
    "l": 50
  },
  "oklch": {
    "l": 0.61241,
    "c": 0.24568,
    "h": 329.8
  },
  "luminance": 0.19489
}

Semantic roles & 50–950 ramp

primary
#CE31C8
secondary
#8AD18D
accent
#E54943
background
#FEF8FD
surface
#FDEFFA
border
#D5CAD3
text
#160B15
muted
#847C83

Preview Lab

Preview with #CE31C8

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#CE31C8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva