#C987FC#C987FC

#C987FC is a light, vivid violet. Relative luminance 0.368; OKLCH L 73.5% C 0.175 H 308.7°. Best body text is #000000 at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#C987FC
RGBrgb(201, 135, 252)
HSLhsl(274, 95%, 76%)
HSVhsv(274, 46%, 99%)
CMYKcmyk(20.2%, 46.4%, 0%, 1.2%)
CIE-LABlab(67.11, 46.26, -48.84)
CIE-LCHlch(67.11, 67.27, 313.45°)
OKLaboklab(73.55% 0.1093 -0.1363)
OKLCHoklch(73.55% 0.175 308.7)
XYZxyz(50.3187, 36.7744, 96.5240)
Luminance0.3677 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C987FC #BAFC87
analogous
#8E87FC #C987FC #FC87F5
triadic
#C987FC #FCC987 #87FCC9
tetradic
#C987FC #FC8E87 #BAFC87 #87F5FC
square
#C987FC #FC8E87 #BAFC87 #87F5FC
split-complementary
#C987FC #F5FC87 #87FC8E
monochromatic
#9310F9 #AE4BFB #C987FC #E4C3FD #F2E1FE

Accessibility & contrast

On white

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

On black

8.35
#C987FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C987FC
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C987FC#FFFFFF#000000##000000
##C987FC1.002.518.358.35
#FFFFFF2.511.0021.0021.00
#0000008.3521.001.001.00
##0000008.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6AA0FF
Deuteranopia (green-blind)
#7CA4F9
Tritanopia (blue-blind)
#C29AB6
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #c987fc;
/* rgb */ color: rgb(201, 135, 252);
/* oklch */ color: oklch(73.5% 0.175 308.7);
Tailwind
colors: {
  custom: {
    50: '#dbabfe',
    500: '#c987fc',
    950: '#000000',
  },
}
SCSS
$custom: #c987fc;
$custom-light: #dbabfe;
$custom-dark: #000000;
JSON
{
  "hex": "#c987fc",
  "rgb": {
    "r": 201,
    "g": 135,
    "b": 252
  },
  "hsl": {
    "h": 273.846,
    "s": 95.122,
    "l": 75.882
  },
  "oklch": {
    "l": 0.73546,
    "c": 0.17466,
    "h": 308.7
  },
  "luminance": 0.36774
}

Semantic roles & 50–950 ramp

primary
#C987FC
secondary
#E3F6D5
accent
#E60064
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151018
muted
#837F86

Preview Lab

Preview with #C987FC

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

Preview Lab → · Contrast checker → · Palette generator →

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