#CF87FF#CF87FF

#CF87FF is a light, vivid violet. Relative luminance 0.378; OKLCH L 74.3% C 0.180 H 310.4°. Best body text is #000000 at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#CF87FF
RGBrgb(207, 135, 255)
HSLhsl(276, 100%, 76%)
HSVhsv(276, 47%, 100%)
CMYKcmyk(18.8%, 47.1%, 0%, 0%)
CIE-LABlab(67.88, 48.53, -49.21)
CIE-LCHlch(67.88, 69.11, 314.60°)
OKLaboklab(74.31% 0.1167 -0.1372)
OKLCHoklch(74.31% 0.18 310.4)
XYZxyz(52.4428, 37.8142, 99.1246)
Luminance0.3781 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF87FF #B7FF87
analogous
#9387FF #CF87FF #FF87F3
triadic
#CF87FF #FFCF87 #87FFCF
tetradic
#CF87FF #FF9387 #B7FF87 #87F3FF
square
#CF87FF #FF9387 #B7FF87 #87F3FF
split-complementary
#CF87FF #F3FF87 #87FF93
monochromatic
#9E0DFF #B74AFF #CF87FF #E7C4FF #F3E0FF

Accessibility & contrast

On white

2.45
#CF87FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.56
#CF87FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF87FF
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF87FF#FFFFFF#000000##000000
##CF87FF1.002.458.568.56
#FFFFFF2.451.0021.0021.00
#0000008.5621.001.001.00
##0000008.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6AA2FF
Deuteranopia (green-blind)
#7EA7FC
Tritanopia (blue-blind)
#C99AB7
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #cf87ff;
/* rgb */ color: rgb(207, 135, 255);
/* oklch */ color: oklch(74.3% 0.180 310.4);
Tailwind
colors: {
  custom: {
    50: '#e0acff',
    500: '#cf87ff',
    950: '#000000',
  },
}
SCSS
$custom: #cf87ff;
$custom-light: #e0acff;
$custom-dark: #000000;
JSON
{
  "hex": "#cf87ff",
  "rgb": {
    "r": 207,
    "g": 135,
    "b": 255
  },
  "hsl": {
    "h": 276,
    "s": 100,
    "l": 76.471
  },
  "oklch": {
    "l": 0.74314,
    "c": 0.18013,
    "h": 310.4
  },
  "luminance": 0.37813
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CF87FF

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

Preview Lab → · Contrast checker → · Palette generator →

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