#CE31C4#CE31C4

#CE31C4 is a mid, highly saturated purple. Relative luminance 0.193; OKLCH L 61.0% C 0.243 H 331.0°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#CE31C4
RGBrgb(206, 49, 196)
HSLhsl(304, 62%, 50%)
HSVhsv(304, 76%, 81%)
CMYKcmyk(0%, 76.2%, 4.9%, 19.2%)
CIE-LABlab(51.04, 74.50, -42.73)
CIE-LCHlch(51.04, 85.88, 330.16°)
OKLaboklab(61.02% 0.2123 -0.1179)
OKLCHoklch(61.02% 0.243 331)
XYZxyz(36.5157, 19.3069, 54.0173)
Luminance0.1930 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CE31C4 #31CE3B
analogous
#8A31CE #CE31C4 #CE3175
triadic
#CE31C4 #C4CE31 #31C4CE
tetradic
#CE31C4 #CE8A31 #31CE3B #3175CE
square
#CE31C4 #CE8A31 #31CE3B #3175CE
split-complementary
#CE31C4 #75CE31 #31CE8A
monochromatic
#6B1966 #9D2595 #CE31C4 #DA62D2 #E694E0

Accessibility & contrast

On white

4.32
#CE31C4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#CE31C4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CE31C4
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CE31C4#FFFFFF#000000##000000
##CE31C41.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#1E6CC8
Deuteranopia (green-blind)
#6481C0
Tritanopia (blue-blind)
#D64679
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ce31c4;
/* rgb */ color: rgb(206, 49, 196);
/* oklch */ color: oklch(61.0% 0.243 331.0);
Tailwind
colors: {
  custom: {
    50: '#e17bd6',
    500: '#ce31c4',
    950: '#000000',
  },
}
SCSS
$custom: #ce31c4;
$custom-light: #e17bd6;
$custom-dark: #000000;
JSON
{
  "hex": "#ce31c4",
  "rgb": {
    "r": 206,
    "g": 49,
    "b": 196
  },
  "hsl": {
    "h": 303.822,
    "s": 61.569,
    "l": 50
  },
  "oklch": {
    "l": 0.6102,
    "c": 0.24285,
    "h": 331
  },
  "luminance": 0.19304
}

Semantic roles & 50–950 ramp

primary
#CE31C4
secondary
#8AD18F
accent
#E54D43
background
#FEF8FD
surface
#FDEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CE31C4

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

Preview Lab → · Contrast checker → · Palette generator →

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