#C787FE#C787FE

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

Color values

HEX#C787FE
RGBrgb(199, 135, 254)
HSLhsl(272, 98%, 76%)
HSVhsv(272, 47%, 100%)
CMYKcmyk(21.7%, 46.9%, 0%, 0.4%)
CIE-LABlab(67.00, 46.16, -50.12)
CIE-LCHlch(67.00, 68.14, 312.65°)
OKLaboklab(73.45% 0.1072 -0.14)
OKLCHoklch(73.45% 0.176 307.4)
XYZxyz(50.1030, 36.6263, 98.1768)
Luminance0.3663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C787FE #BEFE87
analogous
#8C87FE #C787FE #FE87F9
triadic
#C787FE #FEC787 #87FEC7
tetradic
#C787FE #FE8C87 #BEFE87 #87F9FE
square
#C787FE #FE8C87 #BEFE87 #87F9FE
split-complementary
#C787FE #F9FE87 #87FE8C
monochromatic
#8E0EFD #AB4AFD #C787FE #E3C4FF #F1E1FF

Accessibility & contrast

On white

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

On black

8.33
#C787FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C787FE
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C787FE#FFFFFF#000000##000000
##C787FE1.002.528.338.33
#FFFFFF2.521.0021.0021.00
#0000008.3321.001.001.00
##0000008.3321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c787fe;
/* rgb */ color: rgb(199, 135, 254);
/* oklch */ color: oklch(73.4% 0.176 307.4);
Tailwind
colors: {
  custom: {
    50: '#daabff',
    500: '#c787fe',
    950: '#000000',
  },
}
SCSS
$custom: #c787fe;
$custom-light: #daabff;
$custom-dark: #000000;
JSON
{
  "hex": "#c787fe",
  "rgb": {
    "r": 199,
    "g": 135,
    "b": 254
  },
  "hsl": {
    "h": 272.269,
    "s": 98.347,
    "l": 76.275
  },
  "oklch": {
    "l": 0.73447,
    "c": 0.17634,
    "h": 307.4
  },
  "luminance": 0.36626
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C787FE

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

Preview Lab → · Contrast checker → · Palette generator →

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