#CD87F5#CD87F5

#CD87F5 is a light, vivid violet. Relative luminance 0.369; OKLCH L 73.6% C 0.168 H 312.2°. Best body text is #000000 at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#CD87F5
RGBrgb(205, 135, 245)
HSLhsl(278, 85%, 75%)
HSVhsv(278, 45%, 96%)
CMYKcmyk(16.3%, 44.9%, 0%, 3.9%)
CIE-LABlab(67.20, 45.85, -44.83)
CIE-LCHlch(67.20, 64.12, 315.65°)
OKLaboklab(73.61% 0.113 -0.1245)
OKLCHoklch(73.61% 0.168 312.2)
XYZxyz(50.3194, 36.9007, 90.8403)
Luminance0.3690 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD87F5 #AFF587
analogous
#9687F5 #CD87F5 #F587E6
triadic
#CD87F5 #F5CD87 #87F5CD
tetradic
#CD87F5 #F59687 #AFF587 #87E6F5
square
#CD87F5 #F59687 #AFF587 #87E6F5
split-complementary
#CD87F5 #E6F587 #87F596
monochromatic
#9E16EC #B54FF0 #CD87F5 #E5BFFA #F3E3FD

Accessibility & contrast

On white

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

On black

8.38
#CD87F5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD87F5
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD87F5#FFFFFF#000000##000000
##CD87F51.002.518.388.38
#FFFFFF2.511.0021.0021.00
#0000008.3821.001.001.00
##0000008.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#70A0F9
Deuteranopia (green-blind)
#82A5F2
Tritanopia (blue-blind)
#C998B2
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #cd87f5;
/* rgb */ color: rgb(205, 135, 245);
/* oklch */ color: oklch(73.6% 0.168 312.2);
Tailwind
colors: {
  custom: {
    50: '#deabf9',
    500: '#cd87f5',
    950: '#000000',
  },
}
SCSS
$custom: #cd87f5;
$custom-light: #deabf9;
$custom-dark: #000000;
JSON
{
  "hex": "#cd87f5",
  "rgb": {
    "r": 205,
    "g": 135,
    "b": 245
  },
  "hsl": {
    "h": 278.182,
    "s": 84.615,
    "l": 74.51
  },
  "oklch": {
    "l": 0.73605,
    "c": 0.16816,
    "h": 312.2
  },
  "luminance": 0.369
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD87F5

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

Preview Lab → · Contrast checker → · Palette generator →

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