#CE31C7#CE31C7

#CE31C7 is a mid, highly saturated purple. Relative luminance 0.194; OKLCH L 61.2% C 0.245 H 330.1°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#CE31C7
RGBrgb(206, 49, 199)
HSLhsl(303, 62%, 50%)
HSVhsv(303, 76%, 81%)
CMYKcmyk(0%, 76.2%, 3.4%, 19.2%)
CIE-LABlab(51.20, 74.95, -44.21)
CIE-LCHlch(51.20, 87.02, 329.46°)
OKLaboklab(61.19% 0.2123 -0.1222)
OKLCHoklch(61.19% 0.245 330.1)
XYZxyz(36.8606, 19.4449, 55.8336)
Luminance0.1944 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CE31C7 #31CE38
analogous
#8631CE #CE31C7 #CE3179
triadic
#CE31C7 #C7CE31 #31C7CE
tetradic
#CE31C7 #CE8631 #31CE38 #3179CE
square
#CE31C7 #CE8631 #31CE38 #3179CE
split-complementary
#CE31C7 #79CE31 #31CE86
monochromatic
#6B1967 #9D2597 #CE31C7 #DA62D4 #E694E2

Accessibility & contrast

On white

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

On black

4.89
#CE31C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CE31C7
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CE31C7#FFFFFF#000000##000000
##CE31C71.004.304.894.89
#FFFFFF4.301.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#186DCB
Deuteranopia (green-blind)
#6281C3
Tritanopia (blue-blind)
#D6487B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ce31c7;
/* rgb */ color: rgb(206, 49, 199);
/* oklch */ color: oklch(61.2% 0.245 330.1);
Tailwind
colors: {
  custom: {
    50: '#e17bd8',
    500: '#ce31c7',
    950: '#000000',
  },
}
SCSS
$custom: #ce31c7;
$custom-light: #e17bd8;
$custom-dark: #000000;
JSON
{
  "hex": "#ce31c7",
  "rgb": {
    "r": 206,
    "g": 49,
    "b": 199
  },
  "hsl": {
    "h": 302.675,
    "s": 61.569,
    "l": 50
  },
  "oklch": {
    "l": 0.61185,
    "c": 0.24497,
    "h": 330.1
  },
  "luminance": 0.19442
}

Semantic roles & 50–950 ramp

primary
#CE31C7
secondary
#8AD18D
accent
#E54A43
background
#FEF8FD
surface
#FDEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CE31C7

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

Preview Lab → · Contrast checker → · Palette generator →

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