#CF87F6#CF87F6

#CF87F6 is a light, vivid violet. Relative luminance 0.372; OKLCH L 73.9% C 0.170 H 312.8°. Best body text is #000000 at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#CF87F6
RGBrgb(207, 135, 246)
HSLhsl(279, 86%, 75%)
HSVhsv(279, 45%, 96%)
CMYKcmyk(15.9%, 45.1%, 0%, 3.5%)
CIE-LABlab(67.46, 46.62, -44.95)
CIE-LCHlch(67.46, 64.76, 316.04°)
OKLaboklab(73.86% 0.1155 -0.1249)
OKLCHoklch(73.86% 0.17 312.8)
XYZxyz(51.0278, 37.2483, 91.6725)
Luminance0.3725 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF87F6 #AEF687
analogous
#9887F6 #CF87F6 #F687E6
triadic
#CF87F6 #F6CF87 #87F6CF
tetradic
#CF87F6 #F69887 #AEF687 #87E6F6
square
#CF87F6 #F69887 #AEF687 #87E6F6
split-complementary
#CF87F6 #E6F687 #87F698
monochromatic
#A115ED #B84EF2 #CF87F6 #E6C0FA #F4E3FD

Accessibility & contrast

On white

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

On black

8.45
#CF87F6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF87F6
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF87F6#FFFFFF#000000##000000
##CF87F61.002.498.458.45
#FFFFFF2.491.0021.0021.00
#0000008.4521.001.001.00
##0000008.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#70A0FA
Deuteranopia (green-blind)
#83A6F3
Tritanopia (blue-blind)
#CB98B3
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #cf87f6;
/* rgb */ color: rgb(207, 135, 246);
/* oklch */ color: oklch(73.9% 0.170 312.8);
Tailwind
colors: {
  custom: {
    50: '#dfabf9',
    500: '#cf87f6',
    950: '#000000',
  },
}
SCSS
$custom: #cf87f6;
$custom-light: #dfabf9;
$custom-dark: #000000;
JSON
{
  "hex": "#cf87f6",
  "rgb": {
    "r": 207,
    "g": 135,
    "b": 246
  },
  "hsl": {
    "h": 278.919,
    "s": 86.047,
    "l": 74.706
  },
  "oklch": {
    "l": 0.73863,
    "c": 0.17008,
    "h": 312.8
  },
  "luminance": 0.37247
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CF87F6

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

Preview Lab → · Contrast checker → · Palette generator →

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