#CD87F8#CD87F8

#CD87F8 is a light, vivid violet. Relative luminance 0.371; OKLCH L 73.8% C 0.172 H 311.4°. Best body text is #000000 at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#CD87F8
RGBrgb(205, 135, 248)
HSLhsl(277, 89%, 75%)
HSVhsv(277, 46%, 97%)
CMYKcmyk(17.3%, 45.6%, 0%, 2.7%)
CIE-LABlab(67.34, 46.49, -46.25)
CIE-LCHlch(67.34, 65.58, 315.15°)
OKLaboklab(73.75% 0.1134 -0.1287)
OKLCHoklch(73.75% 0.172 311.4)
XYZxyz(50.7811, 37.0853, 93.2718)
Luminance0.3708 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD87F8 #B2F887
analogous
#9487F8 #CD87F8 #F887EB
triadic
#CD87F8 #F8CD87 #87F8CD
tetradic
#CD87F8 #F89487 #B2F887 #87EBF8
square
#CD87F8 #F89487 #B2F887 #87EBF8
split-complementary
#CD87F8 #EBF887 #87F894
monochromatic
#9D13F1 #B54DF5 #CD87F8 #E5C1FB #F3E2FD

Accessibility & contrast

On white

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

On black

8.42
#CD87F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD87F8
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD87F8#FFFFFF#000000##000000
##CD87F81.002.508.428.42
#FFFFFF2.501.0021.0021.00
#0000008.4221.001.001.00
##0000008.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6EA0FC
Deuteranopia (green-blind)
#81A5F5
Tritanopia (blue-blind)
#C898B4
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #cd87f8;
/* rgb */ color: rgb(205, 135, 248);
/* oklch */ color: oklch(73.8% 0.172 311.4);
Tailwind
colors: {
  custom: {
    50: '#deabfb',
    500: '#cd87f8',
    950: '#000000',
  },
}
SCSS
$custom: #cd87f8;
$custom-light: #deabfb;
$custom-dark: #000000;
JSON
{
  "hex": "#cd87f8",
  "rgb": {
    "r": 205,
    "g": 135,
    "b": 248
  },
  "hsl": {
    "h": 277.168,
    "s": 88.976,
    "l": 75.098
  },
  "oklch": {
    "l": 0.73754,
    "c": 0.17153,
    "h": 311.4
  },
  "luminance": 0.37084
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD87F8

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

Preview Lab → · Contrast checker → · Palette generator →

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