#CD87F6#CD87F6

#CD87F6 is a light, vivid violet. Relative luminance 0.370; OKLCH L 73.7% C 0.169 H 311.9°. Best body text is #000000 at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#CD87F6
RGBrgb(205, 135, 246)
HSLhsl(278, 86%, 75%)
HSVhsv(278, 45%, 96%)
CMYKcmyk(16.7%, 45.1%, 0%, 3.5%)
CIE-LABlab(67.25, 46.07, -45.30)
CIE-LCHlch(67.25, 64.61, 315.48°)
OKLaboklab(73.66% 0.1131 -0.1259)
OKLCHoklch(73.66% 0.169 311.9)
XYZxyz(50.4725, 36.9619, 91.6464)
Luminance0.3696 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD87F6 #B0F687
analogous
#9687F6 #CD87F6 #F687E8
triadic
#CD87F6 #F6CD87 #87F6CD
tetradic
#CD87F6 #F69687 #B0F687 #87E8F6
square
#CD87F6 #F69687 #B0F687 #87E8F6
split-complementary
#CD87F6 #E8F687 #87F696
monochromatic
#9E15ED #B54EF2 #CD87F6 #E5C0FA #F3E3FD

Accessibility & contrast

On white

2.50
#CD87F6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.39
#CD87F6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD87F6
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD87F6#FFFFFF#000000##000000
##CD87F61.002.508.398.39
#FFFFFF2.501.0021.0021.00
#0000008.3921.001.001.00
##0000008.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6FA0FA
Deuteranopia (green-blind)
#82A5F3
Tritanopia (blue-blind)
#C998B3
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #cd87f6;
/* rgb */ color: rgb(205, 135, 246);
/* oklch */ color: oklch(73.7% 0.169 311.9);
Tailwind
colors: {
  custom: {
    50: '#deabf9',
    500: '#cd87f6',
    950: '#000000',
  },
}
SCSS
$custom: #cd87f6;
$custom-light: #deabf9;
$custom-dark: #000000;
JSON
{
  "hex": "#cd87f6",
  "rgb": {
    "r": 205,
    "g": 135,
    "b": 246
  },
  "hsl": {
    "h": 277.838,
    "s": 86.047,
    "l": 74.706
  },
  "oklch": {
    "l": 0.73655,
    "c": 0.16928,
    "h": 311.9
  },
  "luminance": 0.36961
}

Semantic roles & 50–950 ramp

primary
#CD87F6
secondary
#E1F5D6
accent
#E30356
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #CD87F6

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

Preview Lab → · Contrast checker → · Palette generator →

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