#C87AF7#C87AF7

#C87AF7 is a light, vivid violet. Relative luminance 0.329; OKLCH L 71.2% C 0.189 H 311.3°. Best body text is #000000 at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#C87AF7
RGBrgb(200, 122, 247)
HSLhsl(277, 89%, 72%)
HSVhsv(277, 51%, 97%)
CMYKcmyk(19%, 50.6%, 0%, 3.1%)
CIE-LABlab(64.09, 51.74, -50.87)
CIE-LCHlch(64.09, 72.56, 315.49°)
OKLaboklab(71.2% 0.1248 -0.1421)
OKLCHoklch(71.2% 0.189 311.3)
XYZxyz(47.5644, 32.9148, 91.8252)
Luminance0.3291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C87AF7 #A9F77A
analogous
#8A7AF7 #C87AF7 #F77AE7
triadic
#C87AF7 #F7C87A #7AF7C8
tetradic
#C87AF7 #F78A7A #A9F77A #7AE7F7
square
#C87AF7 #F78A7A #A9F77A #7AE7F7
split-complementary
#C87AF7 #E7F77A #7AF78A
monochromatic
#960EE9 #B040F4 #C87AF7 #E0B4FA #F3E2FD

Accessibility & contrast

On white

2.77
#C87AF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.58
#C87AF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C87AF7
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C87AF7#FFFFFF#000000##000000
##C87AF71.002.777.587.58
#FFFFFF2.771.0021.0021.00
#0000007.5821.001.001.00
##0000007.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A97FB
Deuteranopia (green-blind)
#729DF4
Tritanopia (blue-blind)
#C38FAD
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #c87af7;
/* rgb */ color: rgb(200, 122, 247);
/* oklch */ color: oklch(71.2% 0.189 311.3);
Tailwind
colors: {
  custom: {
    50: '#dba3fa',
    500: '#c87af7',
    950: '#000000',
  },
}
SCSS
$custom: #c87af7;
$custom-light: #dba3fa;
$custom-dark: #000000;
JSON
{
  "hex": "#c87af7",
  "rgb": {
    "r": 200,
    "g": 122,
    "b": 247
  },
  "hsl": {
    "h": 277.44,
    "s": 88.652,
    "l": 72.353
  },
  "oklch": {
    "l": 0.71201,
    "c": 0.18918,
    "h": 311.3
  },
  "luminance": 0.32914
}

Semantic roles & 50–950 ramp

primary
#C87AF7
secondary
#E2F5D6
accent
#E50056
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #C87AF7

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

Preview Lab → · Contrast checker → · Palette generator →

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