#CE31CE#CE31CE

#CE31CE is a mid, highly saturated purple. Relative luminance 0.198; OKLCH L 61.6% C 0.250 H 328.1°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#CE31CE
RGBrgb(206, 49, 206)
HSLhsl(300, 62%, 50%)
HSVhsv(300, 76%, 81%)
CMYKcmyk(0%, 76.2%, 0%, 19.2%)
CIE-LABlab(51.58, 76.03, -47.64)
CIE-LCHlch(51.58, 89.72, 327.93°)
OKLaboklab(61.58% 0.2122 -0.1321)
OKLCHoklch(61.58% 0.25 328.1)
XYZxyz(37.6920, 19.7775, 60.2128)
Luminance0.1978 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CE31CE #31CE31
analogous
#7F31CE #CE31CE #CE3180
triadic
#CE31CE #CECE31 #31CECE
tetradic
#CE31CE #CE8031 #31CE31 #317FCE
square
#CE31CE #CE8031 #31CE31 #317FCE
split-complementary
#CE31CE #80CE31 #31CE80
monochromatic
#6B196B #9D259D #CE31CE #DA62DA #E694E6

Accessibility & contrast

On white

4.24
#CE31CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#CE31CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CE31CE
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CE31CE#FFFFFF#000000##000000
##CE31CE1.004.244.964.96
#FFFFFF4.241.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#006ED2
Deuteranopia (green-blind)
#5E82CA
Tritanopia (blue-blind)
#D54B7F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ce31ce;
/* rgb */ color: rgb(206, 49, 206);
/* oklch */ color: oklch(61.6% 0.250 328.1);
Tailwind
colors: {
  custom: {
    50: '#e17bdd',
    500: '#ce31ce',
    950: '#000000',
  },
}
SCSS
$custom: #ce31ce;
$custom-light: #e17bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#ce31ce",
  "rgb": {
    "r": 206,
    "g": 49,
    "b": 206
  },
  "hsl": {
    "h": 300,
    "s": 61.569,
    "l": 50
  },
  "oklch": {
    "l": 0.6158,
    "c": 0.24999,
    "h": 328.1
  },
  "luminance": 0.19775
}

Semantic roles & 50–950 ramp

primary
#CE31CE
secondary
#8AD18A
accent
#E54343
background
#FEF8FD
surface
#FDEFFB
border
#D5CAD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CE31CE

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

Preview Lab → · Contrast checker → · Palette generator →

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