#CF87FE#CF87FE

#CF87FE is a light, vivid violet. Relative luminance 0.377; OKLCH L 74.3% C 0.179 H 310.6°. Best body text is #000000 at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#CF87FE
RGBrgb(207, 135, 254)
HSLhsl(276, 98%, 76%)
HSVhsv(276, 47%, 100%)
CMYKcmyk(18.5%, 46.9%, 0%, 0.4%)
CIE-LABlab(67.84, 48.32, -48.74)
CIE-LCHlch(67.84, 68.63, 314.75°)
OKLaboklab(74.26% 0.1166 -0.1358)
OKLCHoklch(74.26% 0.179 310.6)
XYZxyz(52.2822, 37.7500, 98.2790)
Luminance0.3775 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF87FE #B6FE87
analogous
#9487FE #CF87FE #FE87F1
triadic
#CF87FE #FECF87 #87FECF
tetradic
#CF87FE #FE9487 #B6FE87 #87F1FE
square
#CF87FE #FE9487 #B6FE87 #87F1FE
split-complementary
#CF87FE #F1FE87 #87FE94
monochromatic
#9E0EFD #B74AFD #CF87FE #E7C4FF #F3E1FF

Accessibility & contrast

On white

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

On black

8.55
#CF87FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF87FE
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF87FE#FFFFFF#000000##000000
##CF87FE1.002.468.558.55
#FFFFFF2.461.0021.0021.00
#0000008.5521.001.001.00
##0000008.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6BA2FF
Deuteranopia (green-blind)
#7FA7FB
Tritanopia (blue-blind)
#CA9AB7
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #cf87fe;
/* rgb */ color: rgb(207, 135, 254);
/* oklch */ color: oklch(74.3% 0.179 310.6);
Tailwind
colors: {
  custom: {
    50: '#e0acff',
    500: '#cf87fe',
    950: '#000000',
  },
}
SCSS
$custom: #cf87fe;
$custom-light: #e0acff;
$custom-dark: #000000;
JSON
{
  "hex": "#cf87fe",
  "rgb": {
    "r": 207,
    "g": 135,
    "b": 254
  },
  "hsl": {
    "h": 276.303,
    "s": 98.347,
    "l": 76.275
  },
  "oklch": {
    "l": 0.74263,
    "c": 0.17901,
    "h": 310.6
  },
  "luminance": 0.37749
}

Semantic roles & 50–950 ramp

primary
#CF87FE
secondary
#E2F7D4
accent
#E6005B
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151018
muted
#837F86

Preview Lab

Preview with #CF87FE

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

Preview Lab → · Contrast checker → · Palette generator →

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