#CF87F2#CF87F2

#CF87F2 is a light, vivid purple. Relative luminance 0.370; OKLCH L 73.7% C 0.166 H 313.9°. Best body text is #000000 at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#CF87F2
RGBrgb(207, 135, 242)
HSLhsl(280, 80%, 74%)
HSVhsv(280, 44%, 95%)
CMYKcmyk(14.5%, 44.2%, 0%, 5.1%)
CIE-LABlab(67.28, 45.79, -43.04)
CIE-LCHlch(67.28, 62.84, 316.77°)
OKLaboklab(73.67% 0.1149 -0.1193)
OKLCHoklch(73.67% 0.166 313.9)
XYZxyz(50.4205, 37.0053, 88.4739)
Luminance0.3700 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF87F2 #AAF287
analogous
#9A87F2 #CF87F2 #F287E0
triadic
#CF87F2 #F2CF87 #87F2CF
tetradic
#CF87F2 #F29A87 #AAF287 #87E0F2
square
#CF87F2 #F29A87 #AAF287 #87E0F2
split-complementary
#CF87F2 #E0F287 #87F29A
monochromatic
#A319E6 #B950EC #CF87F2 #E5BEF8 #F4E3FC

Accessibility & contrast

On white

2.50
#CF87F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.40
#CF87F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF87F2
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF87F2#FFFFFF#000000##000000
##CF87F21.002.508.408.40
#FFFFFF2.501.0021.0021.00
#0000008.4021.001.001.00
##0000008.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#72A0F6
Deuteranopia (green-blind)
#85A6EF
Tritanopia (blue-blind)
#CC97B1
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #cf87f2;
/* rgb */ color: rgb(207, 135, 242);
/* oklch */ color: oklch(73.7% 0.166 313.9);
Tailwind
colors: {
  custom: {
    50: '#dfabf7',
    500: '#cf87f2',
    950: '#000000',
  },
}
SCSS
$custom: #cf87f2;
$custom-light: #dfabf7;
$custom-dark: #000000;
JSON
{
  "hex": "#cf87f2",
  "rgb": {
    "r": 207,
    "g": 135,
    "b": 242
  },
  "hsl": {
    "h": 280.374,
    "s": 80.451,
    "l": 73.922
  },
  "oklch": {
    "l": 0.73668,
    "c": 0.16563,
    "h": 313.9
  },
  "luminance": 0.37004
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CF87F2

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

Preview Lab → · Contrast checker → · Palette generator →

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