#C796DD#C796DD

#C796DD is a light, moderate purple. Relative luminance 0.392; OKLCH L 74.4% C 0.113 H 315.0°. Best body text is #000000 at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#C796DD
RGBrgb(199, 150, 221)
HSLhsl(281, 51%, 73%)
HSVhsv(281, 32%, 87%)
CMYKcmyk(10%, 32.1%, 0%, 13.3%)
CIE-LABlab(68.88, 30.95, -29.06)
CIE-LCHlch(68.88, 42.46, 316.80°)
OKLaboklab(74.4% 0.0797 -0.0796)
OKLCHoklch(74.4% 0.113 315)
XYZxyz(47.5087, 39.1762, 73.4516)
Luminance0.3917 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C796DD #ACDD96
analogous
#A396DD #C796DD #DD96D0
triadic
#C796DD #DDC796 #96DDC7
tetradic
#C796DD #DDA396 #ACDD96 #96D0DD
square
#C796DD #DDA396 #ACDD96 #96D0DD
split-complementary
#C796DD #D0DD96 #96DDA3
monochromatic
#943DBC #AE68CE #C796DD #E0C4EC #F3E8F8

Accessibility & contrast

On white

2.38
#C796DD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.83
#C796DD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C796DD
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C796DD#FFFFFF#000000##000000
##C796DD1.002.388.838.83
#FFFFFF2.381.0021.0021.00
#0000008.8321.001.001.00
##0000008.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8BA5E0
Deuteranopia (green-blind)
#97A9DB
Tritanopia (blue-blind)
#C69FB0
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #c796dd;
/* rgb */ color: rgb(199, 150, 221);
/* oklch */ color: oklch(74.4% 0.113 315.0);
Tailwind
colors: {
  custom: {
    50: '#d9b5e7',
    500: '#c796dd',
    950: '#000000',
  },
}
SCSS
$custom: #c796dd;
$custom-light: #d9b5e7;
$custom-dark: #000000;
JSON
{
  "hex": "#c796dd",
  "rgb": {
    "r": 199,
    "g": 150,
    "b": 221
  },
  "hsl": {
    "h": 281.408,
    "s": 51.079,
    "l": 72.745
  },
  "oklch": {
    "l": 0.74398,
    "c": 0.11262,
    "h": 315
  },
  "luminance": 0.39175
}

Semantic roles & 50–950 ramp

primary
#C796DD
secondary
#E2EFDC
accent
#BE2756
background
#FDFBFE
surface
#FAF6FC
border
#D3D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #C796DD

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

Preview Lab → · Contrast checker → · Palette generator →

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