#C87EFB#C87EFB

#C87EFB is a light, vivid violet. Relative luminance 0.342; OKLCH L 72.0% C 0.187 H 309.8°. Best body text is #000000 at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#C87EFB
RGBrgb(200, 126, 251)
HSLhsl(276, 94%, 74%)
HSVhsv(276, 50%, 98%)
CMYKcmyk(20.3%, 49.8%, 0%, 1.6%)
CIE-LABlab(65.09, 50.52, -51.48)
CIE-LCHlch(65.09, 72.13, 314.46°)
OKLaboklab(72.01% 0.12 -0.1439)
OKLCHoklch(72.01% 0.187 309.8)
XYZxyz(48.6896, 34.1669, 95.2780)
Luminance0.3417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C87EFB #B1FB7E
analogous
#8A7EFB #C87EFB #FB7EF0
triadic
#C87EFB #FBC87E #7EFBC8
tetradic
#C87EFB #FB8A7E #B1FB7E #7EF0FB
square
#C87EFB #FB8A7E #B1FB7E #7EF0FB
split-complementary
#C87EFB #F0FB7E #7EFB8A
monochromatic
#9508F7 #AF43F9 #C87EFB #E1B9FD #F2E1FE

Accessibility & contrast

On white

2.68
#C87EFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.83
#C87EFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C87EFB
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C87EFB#FFFFFF#000000##000000
##C87EFB1.002.687.837.83
#FFFFFF2.681.0021.0021.00
#0000007.8321.001.001.00
##0000007.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D9BFF
Deuteranopia (green-blind)
#739FF8
Tritanopia (blue-blind)
#C293B1
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #c87efb;
/* rgb */ color: rgb(200, 126, 251);
/* oklch */ color: oklch(72.0% 0.187 309.8);
Tailwind
colors: {
  custom: {
    50: '#dba5fd',
    500: '#c87efb',
    950: '#000000',
  },
}
SCSS
$custom: #c87efb;
$custom-light: #dba5fd;
$custom-dark: #000000;
JSON
{
  "hex": "#c87efb",
  "rgb": {
    "r": 200,
    "g": 126,
    "b": 251
  },
  "hsl": {
    "h": 275.52,
    "s": 93.985,
    "l": 73.922
  },
  "oklch": {
    "l": 0.72009,
    "c": 0.18737,
    "h": 309.8
  },
  "luminance": 0.34166
}

Semantic roles & 50–950 ramp

primary
#C87EFB
secondary
#E2F6D5
accent
#E6005E
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F18
muted
#837F86

Preview Lab

Preview with #C87EFB

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

Preview Lab → · Contrast checker → · Palette generator →

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