#CD87FF#CD87FF

#CD87FF is a light, vivid violet. Relative luminance 0.375; OKLCH L 74.1% C 0.179 H 309.6°. Best body text is #000000 at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#CD87FF
RGBrgb(205, 135, 255)
HSLhsl(275, 100%, 76%)
HSVhsv(275, 47%, 100%)
CMYKcmyk(19.6%, 47.1%, 0%, 0%)
CIE-LABlab(67.67, 47.99, -49.56)
CIE-LCHlch(67.67, 68.99, 314.08°)
OKLaboklab(74.11% 0.1144 -0.1383)
OKLCHoklch(74.11% 0.179 309.6)
XYZxyz(51.8874, 37.5279, 99.0985)
Luminance0.3753 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD87FF #B9FF87
analogous
#9187FF #CD87FF #FF87F5
triadic
#CD87FF #FFCD87 #87FFCD
tetradic
#CD87FF #FF9187 #B9FF87 #87F5FF
square
#CD87FF #FF9187 #B9FF87 #87F5FF
split-complementary
#CD87FF #F5FF87 #87FF91
monochromatic
#9A0DFF #B44AFF #CD87FF #E7C4FF #F2E0FF

Accessibility & contrast

On white

2.47
#CD87FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.51
#CD87FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD87FF
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD87FF#FFFFFF#000000##000000
##CD87FF1.002.478.518.51
#FFFFFF2.471.0021.0021.00
#0000008.5121.001.001.00
##0000008.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6AA2FF
Deuteranopia (green-blind)
#7DA6FC
Tritanopia (blue-blind)
#C79AB7
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #cd87ff;
/* rgb */ color: rgb(205, 135, 255);
/* oklch */ color: oklch(74.1% 0.179 309.6);
Tailwind
colors: {
  custom: {
    50: '#deabff',
    500: '#cd87ff',
    950: '#000000',
  },
}
SCSS
$custom: #cd87ff;
$custom-light: #deabff;
$custom-dark: #000000;
JSON
{
  "hex": "#cd87ff",
  "rgb": {
    "r": 205,
    "g": 135,
    "b": 255
  },
  "hsl": {
    "h": 275,
    "s": 100,
    "l": 76.471
  },
  "oklch": {
    "l": 0.74108,
    "c": 0.17943,
    "h": 309.6
  },
  "luminance": 0.37527
}

Semantic roles & 50–950 ramp

primary
#CD87FF
secondary
#E3F7D4
accent
#E60060
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151018
muted
#837F86

Preview Lab

Preview with #CD87FF

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

Preview Lab → · Contrast checker → · Palette generator →

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