#CE87F7#CE87F7

#CE87F7 is a light, vivid violet. Relative luminance 0.372; OKLCH L 73.8% C 0.171 H 312.1°. Best body text is #000000 at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#CE87F7
RGBrgb(206, 135, 247)
HSLhsl(278, 88%, 75%)
HSVhsv(278, 45%, 97%)
CMYKcmyk(16.6%, 45.3%, 0%, 3.1%)
CIE-LABlab(67.40, 46.55, -45.60)
CIE-LCHlch(67.40, 65.17, 315.59°)
OKLaboklab(73.81% 0.1145 -0.1268)
OKLCHoklch(73.81% 0.171 312.1)
XYZxyz(50.9032, 37.1662, 92.4699)
Luminance0.3716 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CE87F7 #B0F787
analogous
#9687F7 #CE87F7 #F787E8
triadic
#CE87F7 #F7CE87 #87F7CE
tetradic
#CE87F7 #F79687 #B0F787 #87E8F7
square
#CE87F7 #F79687 #B0F787 #87E8F7
split-complementary
#CE87F7 #E8F787 #87F796
monochromatic
#9F14EF #B74EF3 #CE87F7 #E5C0FB #F3E2FD

Accessibility & contrast

On white

2.49
#CE87F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.43
#CE87F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CE87F7
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CE87F7#FFFFFF#000000##000000
##CE87F71.002.498.438.43
#FFFFFF2.491.0021.0021.00
#0000008.4321.001.001.00
##0000008.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6FA0FB
Deuteranopia (green-blind)
#82A6F4
Tritanopia (blue-blind)
#CA98B3
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #ce87f7;
/* rgb */ color: rgb(206, 135, 247);
/* oklch */ color: oklch(73.8% 0.171 312.1);
Tailwind
colors: {
  custom: {
    50: '#dfabfa',
    500: '#ce87f7',
    950: '#000000',
  },
}
SCSS
$custom: #ce87f7;
$custom-light: #dfabfa;
$custom-dark: #000000;
JSON
{
  "hex": "#ce87f7",
  "rgb": {
    "r": 206,
    "g": 135,
    "b": 247
  },
  "hsl": {
    "h": 278.036,
    "s": 87.5,
    "l": 74.902
  },
  "oklch": {
    "l": 0.73808,
    "c": 0.1708,
    "h": 312.1
  },
  "luminance": 0.37165
}

Semantic roles & 50–950 ramp

primary
#CE87F7
secondary
#E1F5D6
accent
#E40154
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #CE87F7

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

Preview Lab → · Contrast checker → · Palette generator →

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