#CE87F2#CE87F2

#CE87F2 is a light, vivid violet. Relative luminance 0.369; OKLCH L 73.6% C 0.165 H 313.5°. Best body text is #000000 at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#CE87F2
RGBrgb(206, 135, 242)
HSLhsl(280, 80%, 74%)
HSVhsv(280, 44%, 95%)
CMYKcmyk(14.9%, 44.2%, 0%, 5.1%)
CIE-LABlab(67.17, 45.50, -43.22)
CIE-LCHlch(67.17, 62.76, 316.48°)
OKLaboklab(73.56% 0.1137 -0.1199)
OKLCHoklch(73.56% 0.165 313.5)
XYZxyz(50.1419, 36.8617, 88.4608)
Luminance0.3686 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CE87F2 #ABF287
analogous
#9987F2 #CE87F2 #F287E1
triadic
#CE87F2 #F2CE87 #87F2CE
tetradic
#CE87F2 #F29987 #ABF287 #87E1F2
square
#CE87F2 #F29987 #ABF287 #87E1F2
split-complementary
#CE87F2 #E1F287 #87F299
monochromatic
#A119E6 #B750EC #CE87F2 #E5BEF8 #F4E3FC

Accessibility & contrast

On white

2.51
#CE87F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.37
#CE87F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CE87F2
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CE87F2#FFFFFF#000000##000000
##CE87F21.002.518.378.37
#FFFFFF2.511.0021.0021.00
#0000008.3721.001.001.00
##0000008.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#72A0F6
Deuteranopia (green-blind)
#85A5EF
Tritanopia (blue-blind)
#CB97B1
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #ce87f2;
/* rgb */ color: rgb(206, 135, 242);
/* oklch */ color: oklch(73.6% 0.165 313.5);
Tailwind
colors: {
  custom: {
    50: '#dfabf7',
    500: '#ce87f2',
    950: '#000000',
  },
}
SCSS
$custom: #ce87f2;
$custom-light: #dfabf7;
$custom-dark: #000000;
JSON
{
  "hex": "#ce87f2",
  "rgb": {
    "r": 206,
    "g": 135,
    "b": 242
  },
  "hsl": {
    "h": 279.813,
    "s": 80.451,
    "l": 73.922
  },
  "oklch": {
    "l": 0.73563,
    "c": 0.16521,
    "h": 313.5
  },
  "luminance": 0.36861
}

Semantic roles & 50–950 ramp

primary
#CE87F2
secondary
#E1F4D7
accent
#DD0950
background
#FDFAFF
surface
#FBF4FE
border
#D4CED6
text
#151017
muted
#837F85

Preview Lab

Preview with #CE87F2

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

Preview Lab → · Contrast checker → · Palette generator →

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