#C87DF2#C87DF2

#C87DF2 is a light, vivid violet. Relative luminance 0.334; OKLCH L 71.4% C 0.179 H 312.2°. Best body text is #000000 at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#C87DF2
RGBrgb(200, 125, 242)
HSLhsl(278, 82%, 72%)
HSVhsv(278, 48%, 95%)
CMYKcmyk(17.4%, 48.3%, 0%, 5.1%)
CIE-LABlab(64.45, 49.12, -47.55)
CIE-LCHlch(64.45, 68.36, 315.93°)
OKLaboklab(71.39% 0.1203 -0.1325)
OKLCHoklch(71.39% 0.179 312.2)
XYZxyz(47.1773, 33.3584, 87.9408)
Luminance0.3336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C87DF2 #A7F27D
analogous
#8E7DF2 #C87DF2 #F27DE1
triadic
#C87DF2 #F2C87D #7DF2C8
tetradic
#C87DF2 #F28E7D #A7F27D #7DE1F2
square
#C87DF2 #F28E7D #A7F27D #7DE1F2
split-complementary
#C87DF2 #E1F27D #7DF28E
monochromatic
#9716DE #B045EC #C87DF2 #E0B5F8 #F3E3FC

Accessibility & contrast

On white

2.74
#C87DF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.67
#C87DF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C87DF2
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C87DF2#FFFFFF#000000##000000
##C87DF21.002.747.677.67
#FFFFFF2.741.0021.0021.00
#0000007.6721.001.001.00
##0000007.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6298F6
Deuteranopia (green-blind)
#789EEF
Tritanopia (blue-blind)
#C48FAC
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #c87df2;
/* rgb */ color: rgb(200, 125, 242);
/* oklch */ color: oklch(71.4% 0.179 312.2);
Tailwind
colors: {
  custom: {
    50: '#dba5f7',
    500: '#c87df2',
    950: '#000000',
  },
}
SCSS
$custom: #c87df2;
$custom-light: #dba5f7;
$custom-dark: #000000;
JSON
{
  "hex": "#c87df2",
  "rgb": {
    "r": 200,
    "g": 125,
    "b": 242
  },
  "hsl": {
    "h": 278.462,
    "s": 81.818,
    "l": 71.961
  },
  "oklch": {
    "l": 0.71387,
    "c": 0.17897,
    "h": 312.2
  },
  "luminance": 0.33357
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C87DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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