#CD87FE#CD87FE

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

Color values

HEX#CD87FE
RGBrgb(205, 135, 254)
HSLhsl(275, 98%, 76%)
HSVhsv(275, 47%, 100%)
CMYKcmyk(19.3%, 46.9%, 0%, 0.4%)
CIE-LABlab(67.62, 47.78, -49.09)
CIE-LCHlch(67.62, 68.50, 314.22°)
OKLaboklab(74.06% 0.1142 -0.1369)
OKLCHoklch(74.06% 0.178 309.8)
XYZxyz(51.7269, 37.4637, 98.2530)
Luminance0.3746 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD87FE #B8FE87
analogous
#9287FE #CD87FE #FE87F4
triadic
#CD87FE #FECD87 #87FECD
tetradic
#CD87FE #FE9287 #B8FE87 #87F4FE
square
#CD87FE #FE9287 #B8FE87 #87F4FE
split-complementary
#CD87FE #F4FE87 #87FE92
monochromatic
#9A0EFD #B44AFD #CD87FE #E6C4FF #F2E1FF

Accessibility & contrast

On white

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

On black

8.49
#CD87FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD87FE
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD87FE#FFFFFF#000000##000000
##CD87FE1.002.478.498.49
#FFFFFF2.471.0021.0021.00
#0000008.4921.001.001.00
##0000008.4921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cd87fe;
/* rgb */ color: rgb(205, 135, 254);
/* oklch */ color: oklch(74.1% 0.178 309.8);
Tailwind
colors: {
  custom: {
    50: '#deabff',
    500: '#cd87fe',
    950: '#000000',
  },
}
SCSS
$custom: #cd87fe;
$custom-light: #deabff;
$custom-dark: #000000;
JSON
{
  "hex": "#cd87fe",
  "rgb": {
    "r": 205,
    "g": 135,
    "b": 254
  },
  "hsl": {
    "h": 275.294,
    "s": 98.347,
    "l": 76.275
  },
  "oklch": {
    "l": 0.74057,
    "c": 0.17831,
    "h": 309.8
  },
  "luminance": 0.37463
}

Semantic roles & 50–950 ramp

primary
#CD87FE
secondary
#E2F7D4
accent
#E6005F
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151018
muted
#837F86

Preview Lab

Preview with #CD87FE

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

Preview Lab → · Contrast checker → · Palette generator →

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