#C787FD#C787FD

#C787FD is a light, vivid violet. Relative luminance 0.366; OKLCH L 73.4% C 0.175 H 307.7°. Best body text is #000000 at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#C787FD
RGBrgb(199, 135, 253)
HSLhsl(273, 97%, 76%)
HSVhsv(273, 47%, 99%)
CMYKcmyk(21.3%, 46.6%, 0%, 0.8%)
CIE-LABlab(66.95, 45.94, -49.65)
CIE-LCHlch(66.95, 67.65, 312.78°)
OKLaboklab(73.4% 0.107 -0.1387)
OKLCHoklch(73.4% 0.175 307.7)
XYZxyz(49.9433, 36.5625, 97.3357)
Luminance0.3656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C787FD #BDFD87
analogous
#8C87FD #C787FD #FD87F8
triadic
#C787FD #FDC787 #87FDC7
tetradic
#C787FD #FD8C87 #BDFD87 #87F8FD
square
#C787FD #FD8C87 #BDFD87 #87F8FD
split-complementary
#C787FD #F8FD87 #87FD8C
monochromatic
#8F0FFB #AB4BFC #C787FD #E3C3FE #F1E1FE

Accessibility & contrast

On white

2.53
#C787FD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.31
#C787FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C787FD
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C787FD#FFFFFF#000000##000000
##C787FD1.002.538.318.31
#FFFFFF2.531.0021.0021.00
#0000008.3121.001.001.00
##0000008.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#69A0FF
Deuteranopia (green-blind)
#7AA4FA
Tritanopia (blue-blind)
#BF9BB6
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #c787fd;
/* rgb */ color: rgb(199, 135, 253);
/* oklch */ color: oklch(73.4% 0.175 307.7);
Tailwind
colors: {
  custom: {
    50: '#daabfe',
    500: '#c787fd',
    950: '#000000',
  },
}
SCSS
$custom: #c787fd;
$custom-light: #daabfe;
$custom-dark: #000000;
JSON
{
  "hex": "#c787fd",
  "rgb": {
    "r": 199,
    "g": 135,
    "b": 253
  },
  "hsl": {
    "h": 272.542,
    "s": 96.721,
    "l": 76.078
  },
  "oklch": {
    "l": 0.73395,
    "c": 0.17518,
    "h": 307.7
  },
  "luminance": 0.36562
}

Semantic roles & 50–950 ramp

primary
#C787FD
secondary
#E4F7D4
accent
#E60069
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151018
muted
#837F86

Preview Lab

Preview with #C787FD

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

Preview Lab → · Contrast checker → · Palette generator →

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