#CF87F5#CF87F5

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

Color values

HEX#CF87F5
RGBrgb(207, 135, 245)
HSLhsl(279, 85%, 75%)
HSVhsv(279, 45%, 96%)
CMYKcmyk(15.5%, 44.9%, 0%, 3.9%)
CIE-LABlab(67.42, 46.41, -44.47)
CIE-LCHlch(67.42, 64.28, 316.22°)
OKLaboklab(73.81% 0.1153 -0.1235)
OKLCHoklch(73.81% 0.169 313)
XYZxyz(50.8748, 37.1870, 90.8663)
Luminance0.3719 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF87F5 #ADF587
analogous
#9887F5 #CF87F5 #F587E4
triadic
#CF87F5 #F5CF87 #87F5CF
tetradic
#CF87F5 #F59887 #ADF587 #87E4F5
square
#CF87F5 #F59887 #ADF587 #87E4F5
split-complementary
#CF87F5 #E4F587 #87F598
monochromatic
#A216EC #B84FF0 #CF87F5 #E6BFFA #F4E3FD

Accessibility & contrast

On white

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

On black

8.44
#CF87F5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF87F5
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF87F5#FFFFFF#000000##000000
##CF87F51.002.498.448.44
#FFFFFF2.491.0021.0021.00
#0000008.4421.001.001.00
##0000008.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#70A0F9
Deuteranopia (green-blind)
#84A6F2
Tritanopia (blue-blind)
#CC97B2
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #cf87f5;
/* rgb */ color: rgb(207, 135, 245);
/* oklch */ color: oklch(73.8% 0.169 313.0);
Tailwind
colors: {
  custom: {
    50: '#dfabf9',
    500: '#cf87f5',
    950: '#000000',
  },
}
SCSS
$custom: #cf87f5;
$custom-light: #dfabf9;
$custom-dark: #000000;
JSON
{
  "hex": "#cf87f5",
  "rgb": {
    "r": 207,
    "g": 135,
    "b": 245
  },
  "hsl": {
    "h": 279.273,
    "s": 84.615,
    "l": 74.51
  },
  "oklch": {
    "l": 0.73814,
    "c": 0.16896,
    "h": 313
  },
  "luminance": 0.37186
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CF87F5

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

Preview Lab → · Contrast checker → · Palette generator →

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