#CF87F4#CF87F4

#CF87F4 is a light, vivid violet. Relative luminance 0.371; OKLCH L 73.8% C 0.168 H 313.3°. Best body text is #000000 at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#CF87F4
RGBrgb(207, 135, 244)
HSLhsl(280, 83%, 74%)
HSVhsv(280, 45%, 96%)
CMYKcmyk(15.2%, 44.7%, 0%, 4.3%)
CIE-LABlab(67.37, 46.20, -44.00)
CIE-LCHlch(67.37, 63.80, 316.40°)
OKLaboklab(73.77% 0.1152 -0.1221)
OKLCHoklch(73.77% 0.168 313.3)
XYZxyz(50.7225, 37.1261, 90.0645)
Luminance0.3713 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF87F4 #ACF487
analogous
#9987F4 #CF87F4 #F487E3
triadic
#CF87F4 #F4CF87 #87F4CF
tetradic
#CF87F4 #F49987 #ACF487 #87E3F4
square
#CF87F4 #F49987 #ACF487 #87E3F4
split-complementary
#CF87F4 #E3F487 #87F499
monochromatic
#A217EA #B94FEF #CF87F4 #E5BFF9 #F4E3FC

Accessibility & contrast

On white

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

On black

8.42
#CF87F4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF87F4
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF87F4#FFFFFF#000000##000000
##CF87F41.002.498.428.42
#FFFFFF2.491.0021.0021.00
#0000008.4221.001.001.00
##0000008.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#71A0F8
Deuteranopia (green-blind)
#84A6F1
Tritanopia (blue-blind)
#CC97B2
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #cf87f4;
/* rgb */ color: rgb(207, 135, 244);
/* oklch */ color: oklch(73.8% 0.168 313.3);
Tailwind
colors: {
  custom: {
    50: '#dfabf8',
    500: '#cf87f4',
    950: '#000000',
  },
}
SCSS
$custom: #cf87f4;
$custom-light: #dfabf8;
$custom-dark: #000000;
JSON
{
  "hex": "#cf87f4",
  "rgb": {
    "r": 207,
    "g": 135,
    "b": 244
  },
  "hsl": {
    "h": 279.633,
    "s": 83.206,
    "l": 74.314
  },
  "oklch": {
    "l": 0.73765,
    "c": 0.16785,
    "h": 313.3
  },
  "luminance": 0.37125
}

Semantic roles & 50–950 ramp

primary
#CF87F4
secondary
#E1F4D7
accent
#E00650
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #CF87F4

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

Preview Lab → · Contrast checker → · Palette generator →

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