#CF87F1#CF87F1

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

Color values

HEX#CF87F1
RGBrgb(207, 135, 241)
HSLhsl(281, 79%, 74%)
HSVhsv(281, 44%, 95%)
CMYKcmyk(14.1%, 44%, 0%, 5.5%)
CIE-LABlab(67.24, 45.58, -42.56)
CIE-LCHlch(67.24, 62.36, 316.96°)
OKLaboklab(73.62% 0.1147 -0.118)
OKLCHoklch(73.62% 0.165 314.2)
XYZxyz(50.2707, 36.9454, 87.6850)
Luminance0.3694 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF87F1 #A9F187
analogous
#9A87F1 #CF87F1 #F187DE
triadic
#CF87F1 #F1CF87 #87F1CF
tetradic
#CF87F1 #F19A87 #A9F187 #87DEF1
square
#CF87F1 #F19A87 #A9F187 #87DEF1
split-complementary
#CF87F1 #DEF187 #87F19A
monochromatic
#A31AE3 #B950EB #CF87F1 #E5BEF7 #F4E4FC

Accessibility & contrast

On white

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

On black

8.39
#CF87F1 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF87F1
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF87F1#FFFFFF#000000##000000
##CF87F11.002.508.398.39
#FFFFFF2.501.0021.0021.00
#0000008.3921.001.001.00
##0000008.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#72A0F5
Deuteranopia (green-blind)
#86A6EE
Tritanopia (blue-blind)
#CD96B1
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #cf87f1;
/* rgb */ color: rgb(207, 135, 241);
/* oklch */ color: oklch(73.6% 0.165 314.2);
Tailwind
colors: {
  custom: {
    50: '#dfabf6',
    500: '#cf87f1',
    950: '#000000',
  },
}
SCSS
$custom: #cf87f1;
$custom-light: #dfabf6;
$custom-dark: #000000;
JSON
{
  "hex": "#cf87f1",
  "rgb": {
    "r": 207,
    "g": 135,
    "b": 241
  },
  "hsl": {
    "h": 280.755,
    "s": 79.104,
    "l": 73.725
  },
  "oklch": {
    "l": 0.73619,
    "c": 0.16453,
    "h": 314.2
  },
  "luminance": 0.36944
}

Semantic roles & 50–950 ramp

primary
#CF87F1
secondary
#E0F4D7
accent
#DB0A4D
background
#FDFAFF
surface
#FBF4FE
border
#D4CED6
text
#151017
muted
#837F85

Preview Lab

Preview with #CF87F1

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

Preview Lab → · Contrast checker → · Palette generator →

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