#CF87EA#CF87EA

#CF87EA is a light, vivid purple. Relative luminance 0.365; OKLCH L 73.3% C 0.157 H 316.3°. Best body text is #000000 at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#CF87EA
RGBrgb(207, 135, 234)
HSLhsl(284, 70%, 72%)
HSVhsv(284, 42%, 92%)
CMYKcmyk(11.5%, 42.3%, 0%, 8.2%)
CIE-LABlab(66.93, 44.14, -39.19)
CIE-LCHlch(66.93, 59.03, 318.40°)
OKLaboklab(73.29% 0.1135 -0.1083)
OKLCHoklch(73.29% 0.157 316.3)
XYZxyz(49.2452, 36.5352, 82.2838)
Luminance0.3653 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF87EA #A2EA87
analogous
#9D87EA #CF87EA #EA87D4
triadic
#CF87EA #EACF87 #87EACF
tetradic
#CF87EA #EA9D87 #A2EA87 #87D4EA
square
#CF87EA #EA9D87 #A2EA87 #87D4EA
split-complementary
#CF87EA #D4EA87 #87EA9D
monochromatic
#A325D2 #BA53E1 #CF87EA #E4BBF3 #F5E5FA

Accessibility & contrast

On white

2.53
#CF87EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.31
#CF87EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF87EA
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF87EA#FFFFFF#000000##000000
##CF87EA1.002.538.318.31
#FFFFFF2.531.0021.0021.00
#0000008.3121.001.001.00
##0000008.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#769EEE
Deuteranopia (green-blind)
#89A5E7
Tritanopia (blue-blind)
#CE94AD
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #cf87ea;
/* rgb */ color: rgb(207, 135, 234);
/* oklch */ color: oklch(73.3% 0.157 316.3);
Tailwind
colors: {
  custom: {
    50: '#dfabf1',
    500: '#cf87ea',
    950: '#000000',
  },
}
SCSS
$custom: #cf87ea;
$custom-light: #dfabf1;
$custom-dark: #000000;
JSON
{
  "hex": "#cf87ea",
  "rgb": {
    "r": 207,
    "g": 135,
    "b": 234
  },
  "hsl": {
    "h": 283.636,
    "s": 70.213,
    "l": 72.353
  },
  "oklch": {
    "l": 0.73286,
    "c": 0.15685,
    "h": 316.3
  },
  "luminance": 0.36534
}

Semantic roles & 50–950 ramp

primary
#CF87EA
secondary
#E0F2D9
accent
#D21347
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151016
muted
#837F84

Preview Lab

Preview with #CF87EA

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

Preview Lab → · Contrast checker → · Palette generator →

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