#CE31C5#CE31C5

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

Color values

HEX#CE31C5
RGBrgb(206, 49, 197)
HSLhsl(303, 62%, 50%)
HSVhsv(303, 76%, 81%)
CMYKcmyk(0%, 76.2%, 4.4%, 19.2%)
CIE-LABlab(51.10, 74.65, -43.23)
CIE-LCHlch(51.10, 86.26, 329.93°)
OKLaboklab(61.08% 0.2123 -0.1193)
OKLCHoklch(61.08% 0.244 330.7)
XYZxyz(36.6299, 19.3526, 54.6187)
Luminance0.1935 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CE31C5 #31CE3A
analogous
#8831CE #CE31C5 #CE3177
triadic
#CE31C5 #C5CE31 #31C5CE
tetradic
#CE31C5 #CE8831 #31CE3A #3177CE
square
#CE31C5 #CE8831 #31CE3A #3177CE
split-complementary
#CE31C5 #77CE31 #31CE88
monochromatic
#6B1966 #9D2596 #CE31C5 #DA62D3 #E694E1

Accessibility & contrast

On white

4.31
#CE31C5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#CE31C5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CE31C5
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CE31C5#FFFFFF#000000##000000
##CE31C51.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ce31c5;
/* rgb */ color: rgb(206, 49, 197);
/* oklch */ color: oklch(61.1% 0.244 330.7);
Tailwind
colors: {
  custom: {
    50: '#e17bd7',
    500: '#ce31c5',
    950: '#000000',
  },
}
SCSS
$custom: #ce31c5;
$custom-light: #e17bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#ce31c5",
  "rgb": {
    "r": 206,
    "g": 49,
    "b": 197
  },
  "hsl": {
    "h": 303.439,
    "s": 61.569,
    "l": 50
  },
  "oklch": {
    "l": 0.61075,
    "c": 0.24355,
    "h": 330.7
  },
  "luminance": 0.1935
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CE31C5

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

Preview Lab → · Contrast checker → · Palette generator →

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