#C796FC#C796FC

#C796FC is a light, vivid violet. Relative luminance 0.410; OKLCH L 75.8% C 0.150 H 305.2°. Best body text is #000000 at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#C796FC
RGBrgb(199, 150, 252)
HSLhsl(269, 94%, 79%)
HSVhsv(269, 40%, 99%)
CMYKcmyk(21%, 40.5%, 0%, 1.2%)
CIE-LABlab(70.16, 37.61, -44.05)
CIE-LCHlch(70.16, 57.92, 310.49°)
OKLaboklab(75.79% 0.0865 -0.1225)
OKLCHoklch(75.79% 0.15 305.2)
XYZxyz(52.0266, 40.9834, 97.2463)
Luminance0.4098 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C796FC #CBFC96
analogous
#9698FC #C796FC #FA96FC
triadic
#C796FC #FCC796 #96FCC7
tetradic
#C796FC #FC9698 #CBFC96 #96FCFA
square
#C796FC #FC9698 #CBFC96 #96FCFA
split-complementary
#C796FC #FCFA96 #98FC96
monochromatic
#881FF9 #A75BFA #C796FC #E7D2FE #EFE1FE

Accessibility & contrast

On white

2.28
#C796FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.20
#C796FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C796FC
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C796FC#FFFFFF#000000##000000
##C796FC1.002.289.209.20
#FFFFFF2.281.0021.0021.00
#0000009.2021.001.001.00
##0000009.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7EAAFF
Deuteranopia (green-blind)
#89ACF9
Tritanopia (blue-blind)
#BFA6BD
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #c796fc;
/* rgb */ color: rgb(199, 150, 252);
/* oklch */ color: oklch(75.8% 0.150 305.2);
Tailwind
colors: {
  custom: {
    50: '#d9b5fe',
    500: '#c796fc',
    950: '#000000',
  },
}
SCSS
$custom: #c796fc;
$custom-light: #d9b5fe;
$custom-dark: #000000;
JSON
{
  "hex": "#c796fc",
  "rgb": {
    "r": 199,
    "g": 150,
    "b": 252
  },
  "hsl": {
    "h": 268.824,
    "s": 94.444,
    "l": 78.824
  },
  "oklch": {
    "l": 0.75794,
    "c": 0.14995,
    "h": 305.2
  },
  "luminance": 0.40983
}

Semantic roles & 50–950 ramp

primary
#C796FC
secondary
#E6F6D5
accent
#E60077
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #C796FC

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

Preview Lab → · Contrast checker → · Palette generator →

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