#C87AF2#C87AF2

#C87AF2 is a light, vivid violet. Relative luminance 0.326; OKLCH L 70.9% C 0.184 H 312.6°. Best body text is #000000 at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#C87AF2
RGBrgb(200, 122, 242)
HSLhsl(279, 82%, 71%)
HSVhsv(279, 50%, 95%)
CMYKcmyk(17.4%, 49.6%, 0%, 5.1%)
CIE-LABlab(63.84, 50.68, -48.50)
CIE-LCHlch(63.84, 70.15, 316.26°)
OKLaboklab(70.94% 0.1243 -0.1353)
OKLCHoklch(70.94% 0.184 312.6)
XYZxyz(46.8032, 32.6103, 87.8161)
Luminance0.3261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C87AF2 #A4F27A
analogous
#8C7AF2 #C87AF2 #F27AE0
triadic
#C87AF2 #F2C87A #7AF2C8
tetradic
#C87AF2 #F28C7A #A4F27A #7AE0F2
square
#C87AF2 #F28C7A #A4F27A #7AE0F2
split-complementary
#C87AF2 #E0F27A #7AF28C
monochromatic
#9716DC #B142ED #C87AF2 #DFB2F7 #F3E3FC

Accessibility & contrast

On white

2.79
#C87AF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.52
#C87AF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C87AF2
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C87AF2#FFFFFF#000000##000000
##C87AF21.002.797.527.52
#FFFFFF2.791.0021.0021.00
#0000007.5221.001.001.00
##0000007.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E97F6
Deuteranopia (green-blind)
#759CEF
Tritanopia (blue-blind)
#C48DAB
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #c87af2;
/* rgb */ color: rgb(200, 122, 242);
/* oklch */ color: oklch(70.9% 0.184 312.6);
Tailwind
colors: {
  custom: {
    50: '#dba3f7',
    500: '#c87af2',
    950: '#000000',
  },
}
SCSS
$custom: #c87af2;
$custom-light: #dba3f7;
$custom-dark: #000000;
JSON
{
  "hex": "#c87af2",
  "rgb": {
    "r": 200,
    "g": 122,
    "b": 242
  },
  "hsl": {
    "h": 279,
    "s": 82.192,
    "l": 71.373
  },
  "oklch": {
    "l": 0.70937,
    "c": 0.18373,
    "h": 312.6
  },
  "luminance": 0.32609
}

Semantic roles & 50–950 ramp

primary
#C87AF2
secondary
#DFF3D4
accent
#DF0752
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #C87AF2

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

Preview Lab → · Contrast checker → · Palette generator →

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