#C987FE#C987FE

#C987FE is a light, vivid violet. Relative luminance 0.369; OKLCH L 73.6% C 0.177 H 308.2°. Best body text is #000000 at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#C987FE
RGBrgb(201, 135, 254)
HSLhsl(273, 98%, 76%)
HSVhsv(273, 47%, 100%)
CMYKcmyk(20.9%, 46.9%, 0%, 0.4%)
CIE-LABlab(67.20, 46.70, -49.78)
CIE-LCHlch(67.20, 68.26, 313.17°)
OKLaboklab(73.65% 0.1095 -0.139)
OKLCHoklch(73.65% 0.177 308.2)
XYZxyz(50.6373, 36.9018, 98.2019)
Luminance0.3690 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C987FE #BCFE87
analogous
#8E87FE #C987FE #FE87F8
triadic
#C987FE #FEC987 #87FEC9
tetradic
#C987FE #FE8E87 #BCFE87 #87F8FE
square
#C987FE #FE8E87 #BCFE87 #87F8FE
split-complementary
#C987FE #F8FE87 #87FE8E
monochromatic
#920EFD #AE4AFD #C987FE #E4C4FF #F1E1FF

Accessibility & contrast

On white

2.51
#C987FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.38
#C987FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C987FE
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C987FE#FFFFFF#000000##000000
##C987FE1.002.518.388.38
#FFFFFF2.511.0021.0021.00
#0000008.3821.001.001.00
##0000008.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#69A1FF
Deuteranopia (green-blind)
#7BA4FB
Tritanopia (blue-blind)
#C29BB7
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #c987fe;
/* rgb */ color: rgb(201, 135, 254);
/* oklch */ color: oklch(73.6% 0.177 308.2);
Tailwind
colors: {
  custom: {
    50: '#dcabff',
    500: '#c987fe',
    950: '#000000',
  },
}
SCSS
$custom: #c987fe;
$custom-light: #dcabff;
$custom-dark: #000000;
JSON
{
  "hex": "#c987fe",
  "rgb": {
    "r": 201,
    "g": 135,
    "b": 254
  },
  "hsl": {
    "h": 273.277,
    "s": 98.347,
    "l": 76.275
  },
  "oklch": {
    "l": 0.73649,
    "c": 0.17697,
    "h": 308.2
  },
  "luminance": 0.36901
}

Semantic roles & 50–950 ramp

primary
#C987FE
secondary
#E4F7D4
accent
#E60066
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151018
muted
#837F86

Preview Lab

Preview with #C987FE

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

Preview Lab → · Contrast checker → · Palette generator →

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