#CF87FB#CF87FB

#CF87FB is a light, vivid violet. Relative luminance 0.376; OKLCH L 74.1% C 0.176 H 311.4°. Best body text is #000000 at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#CF87FB
RGBrgb(207, 135, 251)
HSLhsl(277, 94%, 76%)
HSVhsv(277, 46%, 98%)
CMYKcmyk(17.5%, 46.2%, 0%, 1.6%)
CIE-LABlab(67.69, 47.68, -47.32)
CIE-LCHlch(67.69, 67.18, 315.21°)
OKLaboklab(74.11% 0.1162 -0.1317)
OKLCHoklch(74.11% 0.176 311.4)
XYZxyz(51.8056, 37.5594, 95.7687)
Luminance0.3756 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF87FB #B3FB87
analogous
#9587FB #CF87FB #FB87ED
triadic
#CF87FB #FBCF87 #87FBCF
tetradic
#CF87FB #FB9587 #B3FB87 #87EDFB
square
#CF87FB #FB9587 #B3FB87 #87EDFB
split-complementary
#CF87FB #EDFB87 #87FB95
monochromatic
#A011F7 #B74CF9 #CF87FB #E7C2FD #F3E1FE

Accessibility & contrast

On white

2.47
#CF87FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.51
#CF87FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF87FB
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF87FB#FFFFFF#000000##000000
##CF87FB1.002.478.518.51
#FFFFFF2.471.0021.0021.00
#0000008.5121.001.001.00
##0000008.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6DA1FF
Deuteranopia (green-blind)
#81A6F8
Tritanopia (blue-blind)
#CA99B5
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #cf87fb;
/* rgb */ color: rgb(207, 135, 251);
/* oklch */ color: oklch(74.1% 0.176 311.4);
Tailwind
colors: {
  custom: {
    50: '#e0abfd',
    500: '#cf87fb',
    950: '#000000',
  },
}
SCSS
$custom: #cf87fb;
$custom-light: #e0abfd;
$custom-dark: #000000;
JSON
{
  "hex": "#cf87fb",
  "rgb": {
    "r": 207,
    "g": 135,
    "b": 251
  },
  "hsl": {
    "h": 277.241,
    "s": 93.548,
    "l": 75.686
  },
  "oklch": {
    "l": 0.74112,
    "c": 0.17565,
    "h": 311.4
  },
  "luminance": 0.37558
}

Semantic roles & 50–950 ramp

primary
#CF87FB
secondary
#E1F6D5
accent
#E60057
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #CF87FB

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

Preview Lab → · Contrast checker → · Palette generator →

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