#CD87F3#CD87F3

#CD87F3 is a light, vivid violet. Relative luminance 0.368; OKLCH L 73.5% C 0.166 H 312.8°. Best body text is #000000 at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#CD87F3
RGBrgb(205, 135, 243)
HSLhsl(279, 82%, 74%)
HSVhsv(279, 44%, 95%)
CMYKcmyk(15.6%, 44.4%, 0%, 4.7%)
CIE-LABlab(67.11, 45.43, -43.87)
CIE-LCHlch(67.11, 63.16, 316.00°)
OKLaboklab(73.51% 0.1127 -0.1218)
OKLCHoklch(73.51% 0.166 312.8)
XYZxyz(50.0157, 36.7792, 89.2410)
Luminance0.3678 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD87F3 #ADF387
analogous
#9787F3 #CD87F3 #F387E3
triadic
#CD87F3 #F3CD87 #87F3CD
tetradic
#CD87F3 #F39787 #ADF387 #87E3F3
square
#CD87F3 #F39787 #ADF387 #87E3F3
split-complementary
#CD87F3 #E3F387 #87F397
monochromatic
#9F18E8 #B64FED #CD87F3 #E4BFF9 #F3E3FC

Accessibility & contrast

On white

2.51
#CD87F3 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.36
#CD87F3 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD87F3
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD87F3#FFFFFF#000000##000000
##CD87F31.002.518.368.36
#FFFFFF2.511.0021.0021.00
#0000008.3621.001.001.00
##0000008.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#71A0F7
Deuteranopia (green-blind)
#83A5F0
Tritanopia (blue-blind)
#CA97B2
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #cd87f3;
/* rgb */ color: rgb(205, 135, 243);
/* oklch */ color: oklch(73.5% 0.166 312.8);
Tailwind
colors: {
  custom: {
    50: '#deabf7',
    500: '#cd87f3',
    950: '#000000',
  },
}
SCSS
$custom: #cd87f3;
$custom-light: #deabf7;
$custom-dark: #000000;
JSON
{
  "hex": "#cd87f3",
  "rgb": {
    "r": 205,
    "g": 135,
    "b": 243
  },
  "hsl": {
    "h": 278.889,
    "s": 81.818,
    "l": 74.118
  },
  "oklch": {
    "l": 0.73507,
    "c": 0.16592,
    "h": 312.8
  },
  "luminance": 0.36778
}

Semantic roles & 50–950 ramp

primary
#CD87F3
secondary
#E1F4D7
accent
#DE0753
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #CD87F3

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

Preview Lab → · Contrast checker → · Palette generator →

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