#CF87F7#CF87F7

#CF87F7 is a light, vivid violet. Relative luminance 0.373; OKLCH L 73.9% C 0.171 H 312.5°. Best body text is #000000 at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#CF87F7
RGBrgb(207, 135, 247)
HSLhsl(279, 88%, 75%)
HSVhsv(279, 45%, 97%)
CMYKcmyk(16.2%, 45.3%, 0%, 3.1%)
CIE-LABlab(67.51, 46.83, -45.43)
CIE-LCHlch(67.51, 65.24, 315.87°)
OKLaboklab(73.91% 0.1156 -0.1262)
OKLCHoklch(73.91% 0.171 312.5)
XYZxyz(51.1817, 37.3098, 92.4830)
Luminance0.3731 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF87F7 #AFF787
analogous
#9787F7 #CF87F7 #F787E7
triadic
#CF87F7 #F7CF87 #87F7CF
tetradic
#CF87F7 #F79787 #AFF787 #87E7F7
square
#CF87F7 #F79787 #AFF787 #87E7F7
split-complementary
#CF87F7 #E7F787 #87F797
monochromatic
#A114EF #B84EF3 #CF87F7 #E6C0FB #F4E2FD

Accessibility & contrast

On white

2.48
#CF87F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.46
#CF87F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF87F7
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF87F7#FFFFFF#000000##000000
##CF87F71.002.488.468.46
#FFFFFF2.481.0021.0021.00
#0000008.4621.001.001.00
##0000008.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6FA1FB
Deuteranopia (green-blind)
#83A6F4
Tritanopia (blue-blind)
#CB98B3
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #cf87f7;
/* rgb */ color: rgb(207, 135, 247);
/* oklch */ color: oklch(73.9% 0.171 312.5);
Tailwind
colors: {
  custom: {
    50: '#dfabfa',
    500: '#cf87f7',
    950: '#000000',
  },
}
SCSS
$custom: #cf87f7;
$custom-light: #dfabfa;
$custom-dark: #000000;
JSON
{
  "hex": "#cf87f7",
  "rgb": {
    "r": 207,
    "g": 135,
    "b": 247
  },
  "hsl": {
    "h": 278.571,
    "s": 87.5,
    "l": 74.902
  },
  "oklch": {
    "l": 0.73912,
    "c": 0.17119,
    "h": 312.5
  },
  "luminance": 0.37309
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CF87F7

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

Preview Lab → · Contrast checker → · Palette generator →

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