#CF87F8#CF87F8

#CF87F8 is a light, vivid violet. Relative luminance 0.374; OKLCH L 74.0% C 0.172 H 312.2°. Best body text is #000000 at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#CF87F8
RGBrgb(207, 135, 248)
HSLhsl(278, 89%, 75%)
HSVhsv(278, 46%, 97%)
CMYKcmyk(16.5%, 45.6%, 0%, 2.7%)
CIE-LABlab(67.56, 47.04, -45.90)
CIE-LCHlch(67.56, 65.73, 315.70°)
OKLaboklab(73.96% 0.1158 -0.1276)
OKLCHoklch(73.96% 0.172 312.2)
XYZxyz(51.3365, 37.3717, 93.2978)
Luminance0.3737 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF87F8 #B0F887
analogous
#9687F8 #CF87F8 #F887E8
triadic
#CF87F8 #F8CF87 #87F8CF
tetradic
#CF87F8 #F89687 #B0F887 #87E8F8
square
#CF87F8 #F89687 #B0F887 #87E8F8
split-complementary
#CF87F8 #E8F887 #87F896
monochromatic
#A113F1 #B84DF5 #CF87F8 #E6C1FB #F3E2FD

Accessibility & contrast

On white

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

On black

8.47
#CF87F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF87F8
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF87F8#FFFFFF#000000##000000
##CF87F81.002.488.478.47
#FFFFFF2.481.0021.0021.00
#0000008.4721.001.001.00
##0000008.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6FA1FC
Deuteranopia (green-blind)
#82A6F5
Tritanopia (blue-blind)
#CB98B4
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #cf87f8;
/* rgb */ color: rgb(207, 135, 248);
/* oklch */ color: oklch(74.0% 0.172 312.2);
Tailwind
colors: {
  custom: {
    50: '#dfabfb',
    500: '#cf87f8',
    950: '#000000',
  },
}
SCSS
$custom: #cf87f8;
$custom-light: #dfabfb;
$custom-dark: #000000;
JSON
{
  "hex": "#cf87f8",
  "rgb": {
    "r": 207,
    "g": 135,
    "b": 248
  },
  "hsl": {
    "h": 278.23,
    "s": 88.976,
    "l": 75.098
  },
  "oklch": {
    "l": 0.73962,
    "c": 0.1723,
    "h": 312.2
  },
  "luminance": 0.37371
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CF87F8

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

Preview Lab → · Contrast checker → · Palette generator →

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