#C787FA#C787FA

#C787FA is a light, vivid violet. Relative luminance 0.364; OKLCH L 73.2% C 0.172 H 308.4°. Best body text is #000000 at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#C787FA
RGBrgb(199, 135, 250)
HSLhsl(273, 92%, 75%)
HSVhsv(273, 46%, 98%)
CMYKcmyk(20.4%, 46%, 0%, 2%)
CIE-LABlab(66.80, 45.28, -48.24)
CIE-LCHlch(66.80, 66.16, 313.19°)
OKLaboklab(73.24% 0.1066 -0.1346)
OKLCHoklch(73.24% 0.172 308.4)
XYZxyz(49.4691, 36.3728, 94.8385)
Luminance0.3637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C787FA #BAFA87
analogous
#8D87FA #C787FA #FA87F4
triadic
#C787FA #FAC787 #87FAC7
tetradic
#C787FA #FA8D87 #BAFA87 #87F4FA
square
#C787FA #FA8D87 #BAFA87 #87F4FA
split-complementary
#C787FA #F4FA87 #87FA8D
monochromatic
#9011F5 #AC4CF8 #C787FA #E2C2FC #F1E2FE

Accessibility & contrast

On white

2.54
#C787FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.27
#C787FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C787FA
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C787FA#FFFFFF#000000##000000
##C787FA1.002.548.278.27
#FFFFFF2.541.0021.0021.00
#0000008.2721.001.001.00
##0000008.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6BA0FE
Deuteranopia (green-blind)
#7CA3F7
Tritanopia (blue-blind)
#C09AB5
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #c787fa;
/* rgb */ color: rgb(199, 135, 250);
/* oklch */ color: oklch(73.2% 0.172 308.4);
Tailwind
colors: {
  custom: {
    50: '#daabfc',
    500: '#c787fa',
    950: '#000000',
  },
}
SCSS
$custom: #c787fa;
$custom-light: #daabfc;
$custom-dark: #000000;
JSON
{
  "hex": "#c787fa",
  "rgb": {
    "r": 199,
    "g": 135,
    "b": 250
  },
  "hsl": {
    "h": 273.391,
    "s": 92,
    "l": 75.49
  },
  "oklch": {
    "l": 0.73241,
    "c": 0.1717,
    "h": 308.4
  },
  "luminance": 0.36372
}

Semantic roles & 50–950 ramp

primary
#C787FA
secondary
#E4F6D5
accent
#E60066
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #C787FA

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

Preview Lab → · Contrast checker → · Palette generator →

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