#C791FA#C791FA

#C791FA is a light, vivid violet. Relative luminance 0.393; OKLCH L 74.9% C 0.156 H 306.7°. Best body text is #000000 at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#C791FA
RGBrgb(199, 145, 250)
HSLhsl(271, 91%, 77%)
HSVhsv(271, 42%, 98%)
CMYKcmyk(20.4%, 42%, 0%, 2%)
CIE-LABlab(68.96, 39.89, -44.84)
CIE-LCHlch(68.96, 60.01, 311.66°)
OKLaboklab(74.86% 0.093 -0.1248)
OKLCHoklch(74.86% 0.156 306.7)
XYZxyz(50.9305, 39.2955, 95.3257)
Luminance0.3930 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C791FA #C4FA91
analogous
#9391FA #C791FA #FA91F9
triadic
#C791FA #FAC791 #91FAC7
tetradic
#C791FA #FA9391 #C4FA91 #91F9FA
square
#C791FA #FA9391 #C4FA91 #91F9FA
split-complementary
#C791FA #F9FA91 #91FA93
monochromatic
#8B1CF5 #A956F7 #C791FA #E5CCFD #F0E2FE

Accessibility & contrast

On white

2.37
#C791FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.86
#C791FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C791FA
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C791FA#FFFFFF#000000##000000
##C791FA1.002.378.868.86
#FFFFFF2.371.0021.0021.00
#0000008.8621.001.001.00
##0000008.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#78A6FE
Deuteranopia (green-blind)
#85A9F7
Tritanopia (blue-blind)
#C0A2BA
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #c791fa;
/* rgb */ color: rgb(199, 145, 250);
/* oklch */ color: oklch(74.9% 0.156 306.7);
Tailwind
colors: {
  custom: {
    50: '#dab2fc',
    500: '#c791fa',
    950: '#000000',
  },
}
SCSS
$custom: #c791fa;
$custom-light: #dab2fc;
$custom-dark: #000000;
JSON
{
  "hex": "#c791fa",
  "rgb": {
    "r": 199,
    "g": 145,
    "b": 250
  },
  "hsl": {
    "h": 270.857,
    "s": 91.304,
    "l": 77.451
  },
  "oklch": {
    "l": 0.74861,
    "c": 0.15561,
    "h": 306.7
  },
  "luminance": 0.39295
}

Semantic roles & 50–950 ramp

primary
#C791FA
secondary
#E5F6D5
accent
#E6006F
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #C791FA

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

Preview Lab → · Contrast checker → · Palette generator →

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