#C796FF#C796FF

#C796FF is a light, vivid violet. Relative luminance 0.412; OKLCH L 75.9% C 0.154 H 304.5°. Best body text is #000000 at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#C796FF
RGBrgb(199, 150, 255)
HSLhsl(268, 100%, 79%)
HSVhsv(268, 41%, 100%)
CMYKcmyk(22%, 41.2%, 0%, 0%)
CIE-LABlab(70.30, 38.28, -45.47)
CIE-LCHlch(70.30, 59.44, 310.10°)
OKLaboklab(75.94% 0.087 -0.1266)
OKLCHoklch(75.94% 0.154 304.5)
XYZxyz(52.5058, 41.1750, 99.7698)
Luminance0.4118 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C796FF #CEFF96
analogous
#969AFF #C796FF #FC96FF
triadic
#C796FF #FFC796 #96FFC7
tetradic
#C796FF #FF969A #CEFF96 #96FFFC
square
#C796FF #FF969A #CEFF96 #96FFFC
split-complementary
#C796FF #FFFC96 #9AFF96
monochromatic
#861CFF #A659FF #C796FF #E8D3FF #EFE0FF

Accessibility & contrast

On white

2.27
#C796FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.24
#C796FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C796FF
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C796FF#FFFFFF#000000##000000
##C796FF1.002.279.249.24
#FFFFFF2.271.0021.0021.00
#0000009.2421.001.001.00
##0000009.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7CAAFF
Deuteranopia (green-blind)
#88ACFC
Tritanopia (blue-blind)
#BEA7BE
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #c796ff;
/* rgb */ color: rgb(199, 150, 255);
/* oklch */ color: oklch(75.9% 0.154 304.5);
Tailwind
colors: {
  custom: {
    50: '#dab5ff',
    500: '#c796ff',
    950: '#000000',
  },
}
SCSS
$custom: #c796ff;
$custom-light: #dab5ff;
$custom-dark: #000000;
JSON
{
  "hex": "#c796ff",
  "rgb": {
    "r": 199,
    "g": 150,
    "b": 255
  },
  "hsl": {
    "h": 268,
    "s": 100,
    "l": 79.412
  },
  "oklch": {
    "l": 0.7594,
    "c": 0.15362,
    "h": 304.5
  },
  "luminance": 0.41175
}

Semantic roles & 50–950 ramp

primary
#C796FF
secondary
#E7F7D4
accent
#E6007A
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #C796FF

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

Preview Lab → · Contrast checker → · Palette generator →

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