#CE31C3#CE31C3

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

Color values

HEX#CE31C3
RGBrgb(206, 49, 195)
HSLhsl(304, 62%, 50%)
HSVhsv(304, 76%, 81%)
CMYKcmyk(0%, 76.2%, 5.3%, 19.2%)
CIE-LABlab(50.99, 74.35, -42.24)
CIE-LCHlch(50.99, 85.51, 330.40°)
OKLaboklab(60.97% 0.2123 -0.1164)
OKLCHoklch(60.97% 0.242 331.3)
XYZxyz(36.4022, 19.2616, 53.4198)
Luminance0.1926 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CE31C3 #31CE3C
analogous
#8B31CE #CE31C3 #CE3174
triadic
#CE31C3 #C3CE31 #31C3CE
tetradic
#CE31C3 #CE8B31 #31CE3C #3174CE
square
#CE31C3 #CE8B31 #31CE3C #3174CE
split-complementary
#CE31C3 #74CE31 #31CE8B
monochromatic
#6B1965 #9D2594 #CE31C3 #DA62D1 #E694E0

Accessibility & contrast

On white

4.33
#CE31C3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#CE31C3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CE31C3
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CE31C3#FFFFFF#000000##000000
##CE31C31.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#206CC7
Deuteranopia (green-blind)
#6481BF
Tritanopia (blue-blind)
#D64679
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ce31c3;
/* rgb */ color: rgb(206, 49, 195);
/* oklch */ color: oklch(61.0% 0.242 331.3);
Tailwind
colors: {
  custom: {
    50: '#e17bd5',
    500: '#ce31c3',
    950: '#000000',
  },
}
SCSS
$custom: #ce31c3;
$custom-light: #e17bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#ce31c3",
  "rgb": {
    "r": 206,
    "g": 49,
    "b": 195
  },
  "hsl": {
    "h": 304.204,
    "s": 61.569,
    "l": 50
  },
  "oklch": {
    "l": 0.60965,
    "c": 0.24214,
    "h": 331.3
  },
  "luminance": 0.19259
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CE31C3

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

Preview Lab → · Contrast checker → · Palette generator →

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