#C791FC#C791FC

#C791FC is a light, vivid violet. Relative luminance 0.394; OKLCH L 75.0% C 0.158 H 306.2°. Best body text is #000000 at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#C791FC
RGBrgb(199, 145, 252)
HSLhsl(270, 95%, 78%)
HSVhsv(270, 42%, 99%)
CMYKcmyk(21%, 42.5%, 0%, 1.2%)
CIE-LABlab(69.06, 40.33, -45.79)
CIE-LCHlch(69.06, 61.02, 311.38°)
OKLaboklab(74.96% 0.0934 -0.1275)
OKLCHoklch(74.96% 0.158 306.2)
XYZxyz(51.2457, 39.4216, 96.9860)
Luminance0.3942 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C791FC #C6FC91
analogous
#9191FC #C791FC #FC91FC
triadic
#C791FC #FCC791 #91FCC7
tetradic
#C791FC #FC9191 #C6FC91 #91FCFC
square
#C791FC #FC9191 #C6FC91 #91FCFC
split-complementary
#C791FC #FCFC91 #91FC91
monochromatic
#8A1AF9 #A955FA #C791FC #E5CDFE #F0E1FE

Accessibility & contrast

On white

2.36
#C791FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.88
#C791FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C791FC
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C791FC#FFFFFF#000000##000000
##C791FC1.002.368.888.88
#FFFFFF2.361.0021.0021.00
#0000008.8821.001.001.00
##0000008.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#77A7FF
Deuteranopia (green-blind)
#84A9F9
Tritanopia (blue-blind)
#BFA2BB
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #c791fc;
/* rgb */ color: rgb(199, 145, 252);
/* oklch */ color: oklch(75.0% 0.158 306.2);
Tailwind
colors: {
  custom: {
    50: '#dab2fe',
    500: '#c791fc',
    950: '#000000',
  },
}
SCSS
$custom: #c791fc;
$custom-light: #dab2fe;
$custom-dark: #000000;
JSON
{
  "hex": "#c791fc",
  "rgb": {
    "r": 199,
    "g": 145,
    "b": 252
  },
  "hsl": {
    "h": 270.28,
    "s": 94.69,
    "l": 77.843
  },
  "oklch": {
    "l": 0.74959,
    "c": 0.15802,
    "h": 306.2
  },
  "luminance": 0.39421
}

Semantic roles & 50–950 ramp

primary
#C791FC
secondary
#E5F6D5
accent
#E60072
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #C791FC

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

Preview Lab → · Contrast checker → · Palette generator →

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