#C787EF#C787EF

#C787EF is a light, vivid violet. Relative luminance 0.357; OKLCH L 72.7% C 0.159 H 311.3°. Best body text is #000000 at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#C787EF
RGBrgb(199, 135, 239)
HSLhsl(277, 76%, 73%)
HSVhsv(277, 44%, 94%)
CMYKcmyk(16.7%, 43.5%, 0%, 6.3%)
CIE-LABlab(66.29, 42.89, -43.00)
CIE-LCHlch(66.29, 60.74, 314.93°)
OKLaboklab(72.69% 0.105 -0.1194)
OKLCHoklch(72.69% 0.159 311.3)
XYZxyz(47.7944, 35.7029, 86.0182)
Luminance0.3570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C787EF #AFEF87
analogous
#9387EF #C787EF #EF87E3
triadic
#C787EF #EFC787 #87EFC7
tetradic
#C787EF #EF9387 #AFEF87 #87E3EF
square
#C787EF #EF9387 #AFEF87 #87E3EF
split-complementary
#C787EF #E3EF87 #87EF93
monochromatic
#941EDE #AE51E8 #C787EF #E0BDF6 #F2E4FB

Accessibility & contrast

On white

2.58
#C787EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.14
#C787EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C787EF
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C787EF#FFFFFF#000000##000000
##C787EF1.002.588.148.14
#FFFFFF2.581.0021.0021.00
#0000008.1421.001.001.00
##0000008.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#719EF3
Deuteranopia (green-blind)
#82A3EC
Tritanopia (blue-blind)
#C397B0
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #c787ef;
/* rgb */ color: rgb(199, 135, 239);
/* oklch */ color: oklch(72.7% 0.159 311.3);
Tailwind
colors: {
  custom: {
    50: '#daabf4',
    500: '#c787ef',
    950: '#000000',
  },
}
SCSS
$custom: #c787ef;
$custom-light: #daabf4;
$custom-dark: #000000;
JSON
{
  "hex": "#c787ef",
  "rgb": {
    "r": 199,
    "g": 135,
    "b": 239
  },
  "hsl": {
    "h": 276.923,
    "s": 76.471,
    "l": 73.333
  },
  "oklch": {
    "l": 0.72691,
    "c": 0.15902,
    "h": 311.3
  },
  "luminance": 0.35702
}

Semantic roles & 50–950 ramp

primary
#C787EF
secondary
#E2F3D8
accent
#D90D5B
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151017
muted
#837F85

Preview Lab

Preview with #C787EF

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

Preview Lab → · Contrast checker → · Palette generator →

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