#C87FF2#C87FF2

#C87FF2 is a light, vivid violet. Relative luminance 0.339; OKLCH L 71.7% C 0.176 H 312.0°. Best body text is #000000 at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#C87FF2
RGBrgb(200, 127, 242)
HSLhsl(278, 82%, 72%)
HSVhsv(278, 48%, 95%)
CMYKcmyk(17.4%, 47.5%, 0%, 5.1%)
CIE-LABlab(64.86, 48.07, -46.90)
CIE-LCHlch(64.86, 67.16, 315.70°)
OKLaboklab(71.69% 0.1176 -0.1306)
OKLCHoklch(71.69% 0.176 312)
XYZxyz(47.4330, 33.8699, 88.0260)
Luminance0.3387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C87FF2 #A9F27F
analogous
#8F7FF2 #C87FF2 #F27FE2
triadic
#C87FF2 #F2C87F #7FF2C8
tetradic
#C87FF2 #F28F7F #A9F27F #7FE2F2
square
#C87FF2 #F28F7F #A9F27F #7FE2F2
split-complementary
#C87FF2 #E2F27F #7FF28F
monochromatic
#9617E0 #B047EC #C87FF2 #E0B7F8 #F3E3FC

Accessibility & contrast

On white

2.70
#C87FF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.77
#C87FF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C87FF2
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C87FF2#FFFFFF#000000##000000
##C87FF21.002.707.777.77
#FFFFFF2.701.0021.0021.00
#0000007.7721.001.001.00
##0000007.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#659AF6
Deuteranopia (green-blind)
#799FEF
Tritanopia (blue-blind)
#C491AD
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #c87ff2;
/* rgb */ color: rgb(200, 127, 242);
/* oklch */ color: oklch(71.7% 0.176 312.0);
Tailwind
colors: {
  custom: {
    50: '#dba6f7',
    500: '#c87ff2',
    950: '#000000',
  },
}
SCSS
$custom: #c87ff2;
$custom-light: #dba6f7;
$custom-dark: #000000;
JSON
{
  "hex": "#c87ff2",
  "rgb": {
    "r": 200,
    "g": 127,
    "b": 242
  },
  "hsl": {
    "h": 278.087,
    "s": 81.56,
    "l": 72.353
  },
  "oklch": {
    "l": 0.71691,
    "c": 0.17578,
    "h": 312
  },
  "luminance": 0.33869
}

Semantic roles & 50–950 ramp

primary
#C87FF2
secondary
#E2F4D7
accent
#DE0856
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #C87FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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