#CD87F4#CD87F4

#CD87F4 is a light, vivid violet. Relative luminance 0.368; OKLCH L 73.6% C 0.167 H 312.5°. Best body text is #000000 at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#CD87F4
RGBrgb(205, 135, 244)
HSLhsl(279, 83%, 74%)
HSVhsv(279, 45%, 96%)
CMYKcmyk(16%, 44.7%, 0%, 4.3%)
CIE-LABlab(67.16, 45.64, -44.35)
CIE-LCHlch(67.16, 63.64, 315.82°)
OKLaboklab(73.56% 0.1128 -0.1232)
OKLCHoklch(73.56% 0.167 312.5)
XYZxyz(50.1672, 36.8398, 90.0384)
Luminance0.3684 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD87F4 #AEF487
analogous
#9787F4 #CD87F4 #F487E5
triadic
#CD87F4 #F4CD87 #87F4CD
tetradic
#CD87F4 #F49787 #AEF487 #87E5F4
square
#CD87F4 #F49787 #AEF487 #87E5F4
split-complementary
#CD87F4 #E5F487 #87F497
monochromatic
#9E17EA #B64FEF #CD87F4 #E4BFF9 #F3E3FC

Accessibility & contrast

On white

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

On black

8.37
#CD87F4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD87F4
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD87F4#FFFFFF#000000##000000
##CD87F41.002.518.378.37
#FFFFFF2.511.0021.0021.00
#0000008.3721.001.001.00
##0000008.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#70A0F8
Deuteranopia (green-blind)
#83A5F1
Tritanopia (blue-blind)
#C997B2
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #cd87f4;
/* rgb */ color: rgb(205, 135, 244);
/* oklch */ color: oklch(73.6% 0.167 312.5);
Tailwind
colors: {
  custom: {
    50: '#deabf8',
    500: '#cd87f4',
    950: '#000000',
  },
}
SCSS
$custom: #cd87f4;
$custom-light: #deabf8;
$custom-dark: #000000;
JSON
{
  "hex": "#cd87f4",
  "rgb": {
    "r": 205,
    "g": 135,
    "b": 244
  },
  "hsl": {
    "h": 278.532,
    "s": 83.206,
    "l": 74.314
  },
  "oklch": {
    "l": 0.73556,
    "c": 0.16704,
    "h": 312.5
  },
  "luminance": 0.36839
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD87F4

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

Preview Lab → · Contrast checker → · Palette generator →

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