#C987EF#C987EF

#C987EF is a light, vivid violet. Relative luminance 0.360; OKLCH L 72.9% C 0.160 H 312.2°. Best body text is #000000 at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#C987EF
RGBrgb(201, 135, 239)
HSLhsl(278, 76%, 73%)
HSVhsv(278, 44%, 94%)
CMYKcmyk(15.9%, 43.5%, 0%, 6.3%)
CIE-LABlab(66.50, 43.46, -42.66)
CIE-LCHlch(66.50, 60.90, 315.53°)
OKLaboklab(72.9% 0.1074 -0.1184)
OKLCHoklch(72.9% 0.16 312.2)
XYZxyz(48.3287, 35.9784, 86.0432)
Luminance0.3598 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C987EF #ADEF87
analogous
#9587EF #C987EF #EF87E1
triadic
#C987EF #EFC987 #87EFC9
tetradic
#C987EF #EF9587 #ADEF87 #87E1EF
square
#C987EF #EF9587 #ADEF87 #87E1EF
split-complementary
#C987EF #E1EF87 #87EF95
monochromatic
#981EDE #B151E8 #C987EF #E1BDF6 #F3E4FB

Accessibility & contrast

On white

2.56
#C987EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.20
#C987EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C987EF
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C987EF#FFFFFF#000000##000000
##C987EF1.002.568.208.20
#FFFFFF2.561.0021.0021.00
#0000008.2021.001.001.00
##0000008.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#729EF3
Deuteranopia (green-blind)
#83A3EC
Tritanopia (blue-blind)
#C596B0
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #c987ef;
/* rgb */ color: rgb(201, 135, 239);
/* oklch */ color: oklch(72.9% 0.160 312.2);
Tailwind
colors: {
  custom: {
    50: '#dbabf4',
    500: '#c987ef',
    950: '#000000',
  },
}
SCSS
$custom: #c987ef;
$custom-light: #dbabf4;
$custom-dark: #000000;
JSON
{
  "hex": "#c987ef",
  "rgb": {
    "r": 201,
    "g": 135,
    "b": 239
  },
  "hsl": {
    "h": 278.077,
    "s": 76.471,
    "l": 73.333
  },
  "oklch": {
    "l": 0.72897,
    "c": 0.1598,
    "h": 312.2
  },
  "luminance": 0.35977
}

Semantic roles & 50–950 ramp

primary
#C987EF
secondary
#E2F3D8
accent
#D90D57
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151017
muted
#837F85

Preview Lab

Preview with #C987EF

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

Preview Lab → · Contrast checker → · Palette generator →

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