#C787ED#C787ED

#C787ED is a light, vivid violet. Relative luminance 0.356; OKLCH L 72.6% C 0.157 H 311.9°. Best body text is #000000 at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#C787ED
RGBrgb(199, 135, 237)
HSLhsl(278, 74%, 73%)
HSVhsv(278, 43%, 93%)
CMYKcmyk(16%, 43%, 0%, 7.1%)
CIE-LABlab(66.20, 42.47, -42.04)
CIE-LCHlch(66.20, 59.76, 315.29°)
OKLaboklab(72.59% 0.1047 -0.1166)
OKLCHoklch(72.59% 0.157 311.9)
XYZxyz(47.5006, 35.5854, 84.4707)
Luminance0.3558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C787ED #ADED87
analogous
#9487ED #C787ED #ED87E0
triadic
#C787ED #EDC787 #87EDC7
tetradic
#C787ED #ED9487 #ADED87 #87E0ED
square
#C787ED #ED9487 #ADED87 #87E0ED
split-complementary
#C787ED #E0ED87 #87ED94
monochromatic
#9421D9 #AE52E5 #C787ED #E0BCF5 #F3E4FB

Accessibility & contrast

On white

2.59
#C787ED on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.12
#C787ED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C787ED
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C787ED#FFFFFF#000000##000000
##C787ED1.002.598.128.12
#FFFFFF2.591.0021.0021.00
#0000008.1221.001.001.00
##0000008.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#729EF1
Deuteranopia (green-blind)
#83A2EA
Tritanopia (blue-blind)
#C396AF
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #c787ed;
/* rgb */ color: rgb(199, 135, 237);
/* oklch */ color: oklch(72.6% 0.157 311.9);
Tailwind
colors: {
  custom: {
    50: '#daabf3',
    500: '#c787ed',
    950: '#000000',
  },
}
SCSS
$custom: #c787ed;
$custom-light: #daabf3;
$custom-dark: #000000;
JSON
{
  "hex": "#c787ed",
  "rgb": {
    "r": 199,
    "g": 135,
    "b": 237
  },
  "hsl": {
    "h": 277.647,
    "s": 73.913,
    "l": 72.941
  },
  "oklch": {
    "l": 0.72594,
    "c": 0.15673,
    "h": 311.9
  },
  "luminance": 0.35584
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C787ED

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

Preview Lab → · Contrast checker → · Palette generator →

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