#C787FF#C787FF

#C787FF is a light, vivid violet. Relative luminance 0.367; OKLCH L 73.5% C 0.177 H 307.2°. Best body text is #000000 at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#C787FF
RGBrgb(199, 135, 255)
HSLhsl(272, 100%, 76%)
HSVhsv(272, 47%, 100%)
CMYKcmyk(22%, 47.1%, 0%, 0%)
CIE-LABlab(67.04, 46.39, -50.59)
CIE-LCHlch(67.04, 68.64, 312.52°)
OKLaboklab(73.5% 0.1073 -0.1414)
OKLCHoklch(73.5% 0.178 307.2)
XYZxyz(50.2636, 36.6906, 99.0224)
Luminance0.3669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C787FF #BFFF87
analogous
#8B87FF #C787FF #FF87FB
triadic
#C787FF #FFC787 #87FFC7
tetradic
#C787FF #FF8B87 #BFFF87 #87FBFF
square
#C787FF #FF8B87 #BFFF87 #87FBFF
split-complementary
#C787FF #FBFF87 #87FF8B
monochromatic
#8E0DFF #AA4AFF #C787FF #E4C4FF #F1E0FF

Accessibility & contrast

On white

2.52
#C787FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.34
#C787FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C787FF
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C787FF#FFFFFF#000000##000000
##C787FF1.002.528.348.34
#FFFFFF2.521.0021.0021.00
#0000008.3421.001.001.00
##0000008.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#68A1FF
Deuteranopia (green-blind)
#79A4FC
Tritanopia (blue-blind)
#BF9BB7
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #c787ff;
/* rgb */ color: rgb(199, 135, 255);
/* oklch */ color: oklch(73.5% 0.177 307.2);
Tailwind
colors: {
  custom: {
    50: '#daabff',
    500: '#c787ff',
    950: '#000000',
  },
}
SCSS
$custom: #c787ff;
$custom-light: #daabff;
$custom-dark: #000000;
JSON
{
  "hex": "#c787ff",
  "rgb": {
    "r": 199,
    "g": 135,
    "b": 255
  },
  "hsl": {
    "h": 272,
    "s": 100,
    "l": 76.471
  },
  "oklch": {
    "l": 0.73499,
    "c": 0.1775,
    "h": 307.2
  },
  "luminance": 0.3669
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C787FF

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

Preview Lab → · Contrast checker → · Palette generator →

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