#CE31C6#CE31C6

#CE31C6 is a mid, highly saturated purple. Relative luminance 0.194; OKLCH L 61.1% C 0.244 H 330.4°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#CE31C6
RGBrgb(206, 49, 198)
HSLhsl(303, 62%, 50%)
HSVhsv(303, 76%, 81%)
CMYKcmyk(0%, 76.2%, 3.9%, 19.2%)
CIE-LABlab(51.15, 74.80, -43.72)
CIE-LCHlch(51.15, 86.64, 329.69°)
OKLaboklab(61.13% 0.2123 -0.1207)
OKLCHoklch(61.13% 0.244 330.4)
XYZxyz(36.7448, 19.3986, 55.2241)
Luminance0.1940 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CE31C6 #31CE39
analogous
#8731CE #CE31C6 #CE3178
triadic
#CE31C6 #C6CE31 #31C6CE
tetradic
#CE31C6 #CE8731 #31CE39 #3178CE
square
#CE31C6 #CE8731 #31CE39 #3178CE
split-complementary
#CE31C6 #78CE31 #31CE87
monochromatic
#6B1967 #9D2596 #CE31C6 #DA62D4 #E694E1

Accessibility & contrast

On white

4.30
#CE31C6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#CE31C6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CE31C6
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CE31C6#FFFFFF#000000##000000
##CE31C61.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#1A6CCA
Deuteranopia (green-blind)
#6381C2
Tritanopia (blue-blind)
#D6477A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ce31c6;
/* rgb */ color: rgb(206, 49, 198);
/* oklch */ color: oklch(61.1% 0.244 330.4);
Tailwind
colors: {
  custom: {
    50: '#e17bd8',
    500: '#ce31c6',
    950: '#000000',
  },
}
SCSS
$custom: #ce31c6;
$custom-light: #e17bd8;
$custom-dark: #000000;
JSON
{
  "hex": "#ce31c6",
  "rgb": {
    "r": 206,
    "g": 49,
    "b": 198
  },
  "hsl": {
    "h": 303.057,
    "s": 61.569,
    "l": 50
  },
  "oklch": {
    "l": 0.6113,
    "c": 0.24426,
    "h": 330.4
  },
  "luminance": 0.19396
}

Semantic roles & 50–950 ramp

primary
#CE31C6
secondary
#8AD18E
accent
#E54B43
background
#FEF8FD
surface
#FDEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CE31C6

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

Preview Lab → · Contrast checker → · Palette generator →

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