#CE31C2#CE31C2

#CE31C2 is a mid, highly saturated purple. Relative luminance 0.192; OKLCH L 60.9% C 0.241 H 331.6°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#CE31C2
RGBrgb(206, 49, 194)
HSLhsl(305, 62%, 50%)
HSVhsv(305, 76%, 81%)
CMYKcmyk(0%, 76.2%, 5.8%, 19.2%)
CIE-LABlab(50.94, 74.20, -41.74)
CIE-LCHlch(50.94, 85.13, 330.64°)
OKLaboklab(60.91% 0.2123 -0.115)
OKLCHoklch(60.91% 0.241 331.6)
XYZxyz(36.2896, 19.2165, 52.8263)
Luminance0.1921 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CE31C2 #31CE3D
analogous
#8C31CE #CE31C2 #CE3173
triadic
#CE31C2 #C2CE31 #31C2CE
tetradic
#CE31C2 #CE8C31 #31CE3D #3173CE
square
#CE31C2 #CE8C31 #31CE3D #3173CE
split-complementary
#CE31C2 #73CE31 #31CE8C
monochromatic
#6B1965 #9D2593 #CE31C2 #DA62D1 #E694DF

Accessibility & contrast

On white

4.34
#CE31C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#CE31C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CE31C2
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CE31C2#FFFFFF#000000##000000
##CE31C21.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#226BC6
Deuteranopia (green-blind)
#6581BE
Tritanopia (blue-blind)
#D74578
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ce31c2;
/* rgb */ color: rgb(206, 49, 194);
/* oklch */ color: oklch(60.9% 0.241 331.6);
Tailwind
colors: {
  custom: {
    50: '#e17bd5',
    500: '#ce31c2',
    950: '#000000',
  },
}
SCSS
$custom: #ce31c2;
$custom-light: #e17bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#ce31c2",
  "rgb": {
    "r": 206,
    "g": 49,
    "b": 194
  },
  "hsl": {
    "h": 304.586,
    "s": 61.569,
    "l": 50
  },
  "oklch": {
    "l": 0.60911,
    "c": 0.24144,
    "h": 331.6
  },
  "luminance": 0.19213
}

Semantic roles & 50–950 ramp

primary
#CE31C2
secondary
#8AD190
accent
#E54F43
background
#FEF8FD
surface
#FDEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CE31C2

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

Preview Lab → · Contrast checker → · Palette generator →

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