#CF87FD#CF87FD

#CF87FD is a light, vivid violet. Relative luminance 0.377; OKLCH L 74.2% C 0.178 H 310.9°. Best body text is #000000 at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#CF87FD
RGBrgb(207, 135, 253)
HSLhsl(277, 97%, 76%)
HSVhsv(277, 47%, 99%)
CMYKcmyk(18.2%, 46.6%, 0%, 0.8%)
CIE-LABlab(67.79, 48.10, -48.27)
CIE-LCHlch(67.79, 68.14, 314.90°)
OKLaboklab(74.21% 0.1165 -0.1345)
OKLCHoklch(74.21% 0.178 310.9)
XYZxyz(52.1225, 37.6861, 97.4378)
Luminance0.3769 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF87FD #B5FD87
analogous
#9487FD #CF87FD #FD87F0
triadic
#CF87FD #FDCF87 #87FDCF
tetradic
#CF87FD #FD9487 #B5FD87 #87F0FD
square
#CF87FD #FD9487 #B5FD87 #87F0FD
split-complementary
#CF87FD #F0FD87 #87FD94
monochromatic
#9F0FFB #B74BFC #CF87FD #E7C3FE #F3E1FE

Accessibility & contrast

On white

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

On black

8.54
#CF87FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF87FD
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF87FD#FFFFFF#000000##000000
##CF87FD1.002.468.548.54
#FFFFFF2.461.0021.0021.00
#0000008.5421.001.001.00
##0000008.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6CA2FF
Deuteranopia (green-blind)
#7FA7FA
Tritanopia (blue-blind)
#CA9AB6
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #cf87fd;
/* rgb */ color: rgb(207, 135, 253);
/* oklch */ color: oklch(74.2% 0.178 310.9);
Tailwind
colors: {
  custom: {
    50: '#e0acfe',
    500: '#cf87fd',
    950: '#000000',
  },
}
SCSS
$custom: #cf87fd;
$custom-light: #e0acfe;
$custom-dark: #000000;
JSON
{
  "hex": "#cf87fd",
  "rgb": {
    "r": 207,
    "g": 135,
    "b": 253
  },
  "hsl": {
    "h": 276.61,
    "s": 96.721,
    "l": 76.078
  },
  "oklch": {
    "l": 0.74212,
    "c": 0.17789,
    "h": 310.9
  },
  "luminance": 0.37685
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CF87FD

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

Preview Lab → · Contrast checker → · Palette generator →

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