#CE87FE#CE87FE

#CE87FE is a light, vivid violet. Relative luminance 0.376; OKLCH L 74.2% C 0.179 H 310.2°. Best body text is #000000 at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#CE87FE
RGBrgb(206, 135, 254)
HSLhsl(276, 98%, 76%)
HSVhsv(276, 47%, 100%)
CMYKcmyk(18.9%, 46.9%, 0%, 0.4%)
CIE-LABlab(67.73, 48.05, -48.91)
CIE-LCHlch(67.73, 68.56, 314.49°)
OKLaboklab(74.16% 0.1154 -0.1364)
OKLCHoklch(74.16% 0.179 310.2)
XYZxyz(52.0037, 37.6064, 98.2659)
Luminance0.3761 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CE87FE #B7FE87
analogous
#9387FE #CE87FE #FE87F3
triadic
#CE87FE #FECE87 #87FECE
tetradic
#CE87FE #FE9387 #B7FE87 #87F3FE
square
#CE87FE #FE9387 #B7FE87 #87F3FE
split-complementary
#CE87FE #F3FE87 #87FE93
monochromatic
#9C0EFD #B54AFD #CE87FE #E7C4FF #F3E1FF

Accessibility & contrast

On white

2.46
#CE87FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.52
#CE87FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CE87FE
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CE87FE#FFFFFF#000000##000000
##CE87FE1.002.468.528.52
#FFFFFF2.461.0021.0021.00
#0000008.5221.001.001.00
##0000008.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6BA2FF
Deuteranopia (green-blind)
#7EA6FB
Tritanopia (blue-blind)
#C89AB7
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #ce87fe;
/* rgb */ color: rgb(206, 135, 254);
/* oklch */ color: oklch(74.2% 0.179 310.2);
Tailwind
colors: {
  custom: {
    50: '#dfabff',
    500: '#ce87fe',
    950: '#000000',
  },
}
SCSS
$custom: #ce87fe;
$custom-light: #dfabff;
$custom-dark: #000000;
JSON
{
  "hex": "#ce87fe",
  "rgb": {
    "r": 206,
    "g": 135,
    "b": 254
  },
  "hsl": {
    "h": 275.798,
    "s": 98.347,
    "l": 76.275
  },
  "oklch": {
    "l": 0.7416,
    "c": 0.17865,
    "h": 310.2
  },
  "luminance": 0.37606
}

Semantic roles & 50–950 ramp

primary
#CE87FE
secondary
#E2F7D4
accent
#E6005D
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151018
muted
#837F86

Preview Lab

Preview with #CE87FE

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

Preview Lab → · Contrast checker → · Palette generator →

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