#C787FC#C787FC

#C787FC is a light, vivid violet. Relative luminance 0.365; OKLCH L 73.3% C 0.174 H 307.9°. Best body text is #000000 at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#C787FC
RGBrgb(199, 135, 252)
HSLhsl(273, 95%, 76%)
HSVhsv(273, 46%, 99%)
CMYKcmyk(21%, 46.4%, 0%, 1.2%)
CIE-LABlab(66.90, 45.72, -49.18)
CIE-LCHlch(66.90, 67.15, 312.91°)
OKLaboklab(73.34% 0.1069 -0.1373)
OKLCHoklch(73.34% 0.174 307.9)
XYZxyz(49.7844, 36.4989, 96.4989)
Luminance0.3650 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C787FC #BCFC87
analogous
#8C87FC #C787FC #FC87F6
triadic
#C787FC #FCC787 #87FCC7
tetradic
#C787FC #FC8C87 #BCFC87 #87F6FC
square
#C787FC #FC8C87 #BCFC87 #87F6FC
split-complementary
#C787FC #F6FC87 #87FC8C
monochromatic
#8F10F9 #AB4BFB #C787FC #E3C3FD #F1E1FE

Accessibility & contrast

On white

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

On black

8.30
#C787FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C787FC
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C787FC#FFFFFF#000000##000000
##C787FC1.002.538.308.30
#FFFFFF2.531.0021.0021.00
#0000008.3021.001.001.00
##0000008.3021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c787fc;
/* rgb */ color: rgb(199, 135, 252);
/* oklch */ color: oklch(73.3% 0.174 307.9);
Tailwind
colors: {
  custom: {
    50: '#daabfe',
    500: '#c787fc',
    950: '#000000',
  },
}
SCSS
$custom: #c787fc;
$custom-light: #daabfe;
$custom-dark: #000000;
JSON
{
  "hex": "#c787fc",
  "rgb": {
    "r": 199,
    "g": 135,
    "b": 252
  },
  "hsl": {
    "h": 272.821,
    "s": 95.122,
    "l": 75.882
  },
  "oklch": {
    "l": 0.73344,
    "c": 0.17402,
    "h": 307.9
  },
  "luminance": 0.36498
}

Semantic roles & 50–950 ramp

primary
#C787FC
secondary
#E4F6D5
accent
#E60068
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151018
muted
#837F86

Preview Lab

Preview with #C787FC

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

Preview Lab → · Contrast checker → · Palette generator →

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