#C796EB#C796EB

#C796EB is a light, vivid violet. Relative luminance 0.400; OKLCH L 75.0% C 0.129 H 310.0°. Best body text is #000000 at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#C796EB
RGBrgb(199, 150, 235)
HSLhsl(275, 68%, 75%)
HSVhsv(275, 36%, 92%)
CMYKcmyk(15.3%, 36.2%, 0%, 7.8%)
CIE-LABlab(69.44, 33.89, -35.90)
CIE-LCHlch(69.44, 49.37, 313.35°)
OKLaboklab(75.01% 0.0831 -0.099)
OKLCHoklch(75.01% 0.129 310)
XYZxyz(49.4522, 39.9536, 83.6878)
Luminance0.3995 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C796EB #BAEB96
analogous
#9C96EB #C796EB #EB96E5
triadic
#C796EB #EBC796 #96EBC7
tetradic
#C796EB #EB9C96 #BAEB96 #96E5EB
square
#C796EB #EB9C96 #BAEB96 #96E5EB
split-complementary
#C796EB #E5EB96 #96EB9C
monochromatic
#902FD7 #AC63E1 #C796EB #E2C9F5 #F1E5FA

Accessibility & contrast

On white

2.34
#C796EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.99
#C796EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C796EB
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C796EB#FFFFFF#000000##000000
##C796EB1.002.348.998.99
#FFFFFF2.341.0021.0021.00
#0000008.9921.001.001.00
##0000008.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#86A7EE
Deuteranopia (green-blind)
#91AAE9
Tritanopia (blue-blind)
#C3A2B6
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #c796eb;
/* rgb */ color: rgb(199, 150, 235);
/* oklch */ color: oklch(75.0% 0.129 310.0);
Tailwind
colors: {
  custom: {
    50: '#d9b5f1',
    500: '#c796eb',
    950: '#000000',
  },
}
SCSS
$custom: #c796eb;
$custom-light: #d9b5f1;
$custom-dark: #000000;
JSON
{
  "hex": "#c796eb",
  "rgb": {
    "r": 199,
    "g": 150,
    "b": 235
  },
  "hsl": {
    "h": 274.588,
    "s": 68,
    "l": 75.49
  },
  "oklch": {
    "l": 0.75005,
    "c": 0.12927,
    "h": 310
  },
  "luminance": 0.39953
}

Semantic roles & 50–950 ramp

primary
#C796EB
secondary
#E4F2D9
accent
#D01665
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #C796EB

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

Preview Lab → · Contrast checker → · Palette generator →

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