#CE51D7#CE51D7

#CE51D7 is a light, highly saturated purple. Relative luminance 0.239; OKLCH L 64.9% C 0.221 H 325.0°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#CE51D7
RGBrgb(206, 81, 215)
HSLhsl(296, 63%, 58%)
HSVhsv(296, 62%, 84%)
CMYKcmyk(4.2%, 62.3%, 0%, 15.7%)
CIE-LABlab(56.00, 66.39, -45.76)
CIE-LCHlch(56.00, 80.63, 325.42°)
OKLaboklab(64.91% 0.1811 -0.1269)
OKLCHoklch(64.91% 0.221 325)
XYZxyz(40.6608, 23.9154, 66.7512)
Luminance0.2391 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CE51D7 #5AD751
analogous
#8B51D7 #CE51D7 #D7519D
triadic
#CE51D7 #D7CE51 #51D7CE
tetradic
#CE51D7 #D78B51 #5AD751 #519DD7
square
#CE51D7 #D78B51 #5AD751 #519DD7
split-complementary
#CE51D7 #9DD751 #51D78B
monochromatic
#86208D #B52CBF #CE51D7 #DC83E2 #EAB5EE

Accessibility & contrast

On white

3.63
#CE51D7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.78
#CE51D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CE51D7
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CE51D7#FFFFFF#000000##000000
##CE51D71.003.635.785.78
#FFFFFF3.631.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#397CDB
Deuteranopia (green-blind)
#698CD3
Tritanopia (blue-blind)
#D2648D
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #ce51d7;
/* rgb */ color: rgb(206, 81, 215);
/* oklch */ color: oklch(64.9% 0.221 325.0);
Tailwind
colors: {
  custom: {
    50: '#e08ae4',
    500: '#ce51d7',
    950: '#000000',
  },
}
SCSS
$custom: #ce51d7;
$custom-light: #e08ae4;
$custom-dark: #000000;
JSON
{
  "hex": "#ce51d7",
  "rgb": {
    "r": 206,
    "g": 81,
    "b": 215
  },
  "hsl": {
    "h": 295.97,
    "s": 62.617,
    "l": 58.039
  },
  "oklch": {
    "l": 0.64909,
    "c": 0.22114,
    "h": 325
  },
  "luminance": 0.23913
}

Semantic roles & 50–950 ramp

primary
#CE51D7
secondary
#ABDDA7
accent
#E6424D
background
#FEF8FE
surface
#FCF0FC
border
#D5CBD5
text
#160C15
muted
#847D84

Preview Lab

Preview with #CE51D7

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

Preview Lab → · Contrast checker → · Palette generator →

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