#C871EC#C871EC

#C871EC is a light, vivid purple. Relative luminance 0.301; OKLCH L 69.3% C 0.191 H 315.1°. Best body text is #000000 at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#C871EC
RGBrgb(200, 113, 236)
HSLhsl(282, 76%, 68%)
HSVhsv(282, 52%, 93%)
CMYKcmyk(15.3%, 52.1%, 0%, 7.5%)
CIE-LABlab(61.78, 54.04, -48.44)
CIE-LCHlch(61.78, 72.57, 318.12°)
OKLaboklab(69.32% 0.1357 -0.135)
OKLCHoklch(69.32% 0.191 315.1)
XYZxyz(44.8625, 30.1471, 82.7963)
Luminance0.3015 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C871EC #95EC71
analogous
#8A71EC #C871EC #EC71D2
triadic
#C871EC #ECC871 #71ECC8
tetradic
#C871EC #EC8A71 #95EC71 #71D2EC
square
#C871EC #EC8A71 #95EC71 #71D2EC
split-complementary
#C871EC #D2EC71 #71EC8A
monochromatic
#951BC8 #B33BE5 #C871EC #DDA7F3 #F2DDFA

Accessibility & contrast

On white

2.99
#C871EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.03
#C871EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C871EC
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C871EC#FFFFFF#000000##000000
##C871EC1.002.997.037.03
#FFFFFF2.991.0021.0021.00
#0000007.0321.001.001.00
##0000007.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5590F0
Deuteranopia (green-blind)
#7098E9
Tritanopia (blue-blind)
#C684A4
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #c871ec;
/* rgb */ color: rgb(200, 113, 236);
/* oklch */ color: oklch(69.3% 0.191 315.1);
Tailwind
colors: {
  custom: {
    50: '#db9df2',
    500: '#c871ec',
    950: '#000000',
  },
}
SCSS
$custom: #c871ec;
$custom-light: #db9df2;
$custom-dark: #000000;
JSON
{
  "hex": "#c871ec",
  "rgb": {
    "r": 200,
    "g": 113,
    "b": 236
  },
  "hsl": {
    "h": 282.439,
    "s": 76.398,
    "l": 68.431
  },
  "oklch": {
    "l": 0.69315,
    "c": 0.19144,
    "h": 315.1
  },
  "luminance": 0.30146
}

Semantic roles & 50–950 ramp

primary
#C871EC
secondary
#D5EFCA
accent
#D90D49
background
#FDF9FE
surface
#FBF2FD
border
#D4CCD5
text
#150E17
muted
#837E85

Preview Lab

Preview with #C871EC

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

Preview Lab → · Contrast checker → · Palette generator →

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