#C87EF2#C87EF2

#C87EF2 is a light, vivid violet. Relative luminance 0.336; OKLCH L 71.5% C 0.177 H 312.1°. Best body text is #000000 at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#C87EF2
RGBrgb(200, 126, 242)
HSLhsl(278, 82%, 72%)
HSVhsv(278, 48%, 95%)
CMYKcmyk(17.4%, 47.9%, 0%, 5.1%)
CIE-LABlab(64.65, 48.59, -47.23)
CIE-LCHlch(64.65, 67.76, 315.82°)
OKLaboklab(71.54% 0.119 -0.1316)
OKLCHoklch(71.54% 0.177 312.1)
XYZxyz(47.3045, 33.6129, 87.9832)
Luminance0.3361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C87EF2 #A8F27E
analogous
#8E7EF2 #C87EF2 #F27EE2
triadic
#C87EF2 #F2C87E #7EF2C8
tetradic
#C87EF2 #F28E7E #A8F27E #7EE2F2
square
#C87EF2 #F28E7E #A8F27E #7EE2F2
split-complementary
#C87EF2 #E2F27E #7EF28E
monochromatic
#9616DF #B046EC #C87EF2 #E0B6F8 #F3E3FC

Accessibility & contrast

On white

2.72
#C87EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.72
#C87EF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C87EF2
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C87EF2#FFFFFF#000000##000000
##C87EF21.002.727.727.72
#FFFFFF2.721.0021.0021.00
#0000007.7221.001.001.00
##0000007.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6399F6
Deuteranopia (green-blind)
#789EEF
Tritanopia (blue-blind)
#C490AD
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #c87ef2;
/* rgb */ color: rgb(200, 126, 242);
/* oklch */ color: oklch(71.5% 0.177 312.1);
Tailwind
colors: {
  custom: {
    50: '#dba5f7',
    500: '#c87ef2',
    950: '#000000',
  },
}
SCSS
$custom: #c87ef2;
$custom-light: #dba5f7;
$custom-dark: #000000;
JSON
{
  "hex": "#c87ef2",
  "rgb": {
    "r": 200,
    "g": 126,
    "b": 242
  },
  "hsl": {
    "h": 278.276,
    "s": 81.69,
    "l": 72.157
  },
  "oklch": {
    "l": 0.71538,
    "c": 0.17738,
    "h": 312.1
  },
  "luminance": 0.33612
}

Semantic roles & 50–950 ramp

primary
#C87EF2
secondary
#E1F4D7
accent
#DE0755
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #C87EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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