#CD87FB#CD87FB

#CD87FB is a light, vivid violet. Relative luminance 0.373; OKLCH L 73.9% C 0.175 H 310.6°. Best body text is #000000 at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#CD87FB
RGBrgb(205, 135, 251)
HSLhsl(276, 94%, 76%)
HSVhsv(276, 46%, 98%)
CMYKcmyk(18.3%, 46.2%, 0%, 1.6%)
CIE-LABlab(67.48, 47.13, -47.67)
CIE-LCHlch(67.48, 67.04, 314.67°)
OKLaboklab(73.91% 0.1138 -0.1328)
OKLCHoklch(73.91% 0.175 310.6)
XYZxyz(51.2502, 37.2730, 95.7427)
Luminance0.3727 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD87FB #B5FB87
analogous
#9387FB #CD87FB #FB87EF
triadic
#CD87FB #FBCD87 #87FBCD
tetradic
#CD87FB #FB9387 #B5FB87 #87EFFB
square
#CD87FB #FB9387 #B5FB87 #87EFFB
split-complementary
#CD87FB #EFFB87 #87FB93
monochromatic
#9C11F7 #B44CF9 #CD87FB #E6C2FD #F3E1FE

Accessibility & contrast

On white

2.48
#CD87FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.45
#CD87FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD87FB
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD87FB#FFFFFF#000000##000000
##CD87FB1.002.488.458.45
#FFFFFF2.481.0021.0021.00
#0000008.4521.001.001.00
##0000008.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6CA1FF
Deuteranopia (green-blind)
#7FA6F8
Tritanopia (blue-blind)
#C899B5
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #cd87fb;
/* rgb */ color: rgb(205, 135, 251);
/* oklch */ color: oklch(73.9% 0.175 310.6);
Tailwind
colors: {
  custom: {
    50: '#deabfd',
    500: '#cd87fb',
    950: '#000000',
  },
}
SCSS
$custom: #cd87fb;
$custom-light: #deabfd;
$custom-dark: #000000;
JSON
{
  "hex": "#cd87fb",
  "rgb": {
    "r": 205,
    "g": 135,
    "b": 251
  },
  "hsl": {
    "h": 276.207,
    "s": 93.548,
    "l": 75.686
  },
  "oklch": {
    "l": 0.73905,
    "c": 0.17491,
    "h": 310.6
  },
  "luminance": 0.37272
}

Semantic roles & 50–950 ramp

primary
#CD87FB
secondary
#E2F6D5
accent
#E6005B
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #CD87FB

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

Preview Lab → · Contrast checker → · Palette generator →

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