#CD87F7#CD87F7

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

Color values

HEX#CD87F7
RGBrgb(205, 135, 247)
HSLhsl(278, 88%, 75%)
HSVhsv(278, 45%, 97%)
CMYKcmyk(17%, 45.3%, 0%, 3.1%)
CIE-LABlab(67.29, 46.28, -45.78)
CIE-LCHlch(67.29, 65.09, 315.31°)
OKLaboklab(73.7% 0.1133 -0.1273)
OKLCHoklch(73.7% 0.17 311.7)
XYZxyz(50.6264, 37.0234, 92.4569)
Luminance0.3702 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD87F7 #B1F787
analogous
#9587F7 #CD87F7 #F787E9
triadic
#CD87F7 #F7CD87 #87F7CD
tetradic
#CD87F7 #F79587 #B1F787 #87E9F7
square
#CD87F7 #F79587 #B1F787 #87E9F7
split-complementary
#CD87F7 #E9F787 #87F795
monochromatic
#9D14EF #B54EF3 #CD87F7 #E5C0FB #F3E2FD

Accessibility & contrast

On white

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

On black

8.40
#CD87F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD87F7
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD87F7#FFFFFF#000000##000000
##CD87F71.002.508.408.40
#FFFFFF2.501.0021.0021.00
#0000008.4021.001.001.00
##0000008.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6FA0FB
Deuteranopia (green-blind)
#81A5F4
Tritanopia (blue-blind)
#C998B3
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #cd87f7;
/* rgb */ color: rgb(205, 135, 247);
/* oklch */ color: oklch(73.7% 0.170 311.7);
Tailwind
colors: {
  custom: {
    50: '#deabfa',
    500: '#cd87f7',
    950: '#000000',
  },
}
SCSS
$custom: #cd87f7;
$custom-light: #deabfa;
$custom-dark: #000000;
JSON
{
  "hex": "#cd87f7",
  "rgb": {
    "r": 205,
    "g": 135,
    "b": 247
  },
  "hsl": {
    "h": 277.5,
    "s": 87.5,
    "l": 74.902
  },
  "oklch": {
    "l": 0.73704,
    "c": 0.17041,
    "h": 311.7
  },
  "luminance": 0.37022
}

Semantic roles & 50–950 ramp

primary
#CD87F7
secondary
#E2F5D6
accent
#E40156
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #CD87F7

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

Preview Lab → · Contrast checker → · Palette generator →

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