#CF87FC#CF87FC

#CF87FC is a light, vivid violet. Relative luminance 0.376; OKLCH L 74.2% C 0.177 H 311.1°. Best body text is #000000 at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#CF87FC
RGBrgb(207, 135, 252)
HSLhsl(277, 95%, 76%)
HSVhsv(277, 46%, 99%)
CMYKcmyk(17.9%, 46.4%, 0%, 1.2%)
CIE-LABlab(67.74, 47.89, -47.80)
CIE-LCHlch(67.74, 67.66, 315.06°)
OKLaboklab(74.16% 0.1163 -0.1331)
OKLCHoklch(74.16% 0.177 311.1)
XYZxyz(51.9636, 37.6226, 96.6011)
Luminance0.3762 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF87FC #B4FC87
analogous
#9487FC #CF87FC #FC87EE
triadic
#CF87FC #FCCF87 #87FCCF
tetradic
#CF87FC #FC9487 #B4FC87 #87EEFC
square
#CF87FC #FC9487 #B4FC87 #87EEFC
split-complementary
#CF87FC #EEFC87 #87FC94
monochromatic
#9F10F9 #B74BFB #CF87FC #E7C3FD #F3E1FE

Accessibility & contrast

On white

2.46
#CF87FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.52
#CF87FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF87FC
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF87FC#FFFFFF#000000##000000
##CF87FC1.002.468.528.52
#FFFFFF2.461.0021.0021.00
#0000008.5221.001.001.00
##0000008.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6CA1FF
Deuteranopia (green-blind)
#80A6F9
Tritanopia (blue-blind)
#CA99B6
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #cf87fc;
/* rgb */ color: rgb(207, 135, 252);
/* oklch */ color: oklch(74.2% 0.177 311.1);
Tailwind
colors: {
  custom: {
    50: '#e0abfe',
    500: '#cf87fc',
    950: '#000000',
  },
}
SCSS
$custom: #cf87fc;
$custom-light: #e0abfe;
$custom-dark: #000000;
JSON
{
  "hex": "#cf87fc",
  "rgb": {
    "r": 207,
    "g": 135,
    "b": 252
  },
  "hsl": {
    "h": 276.923,
    "s": 95.122,
    "l": 75.882
  },
  "oklch": {
    "l": 0.74162,
    "c": 0.17677,
    "h": 311.1
  },
  "luminance": 0.37622
}

Semantic roles & 50–950 ramp

primary
#CF87FC
secondary
#E2F6D5
accent
#E60058
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151018
muted
#837F86

Preview Lab

Preview with #CF87FC

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

Preview Lab → · Contrast checker → · Palette generator →

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