#C796CD#C796CD

#C796CD is a light, moderate purple. Relative luminance 0.384; OKLCH L 73.8% C 0.095 H 322.8°. Best body text is #000000 at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#C796CD
RGBrgb(199, 150, 205)
HSLhsl(293, 35%, 70%)
HSVhsv(293, 27%, 80%)
CMYKcmyk(2.9%, 26.8%, 0%, 19.6%)
CIE-LABlab(68.29, 27.76, -21.12)
CIE-LCHlch(68.29, 34.88, 322.74°)
OKLaboklab(73.75% 0.0753 -0.0572)
OKLCHoklch(73.75% 0.095 322.8)
XYZxyz(45.4777, 38.3638, 62.7551)
Luminance0.3836 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C796CD #9CCD96
analogous
#AC96CD #C796CD #CD96B7
triadic
#C796CD #CDC796 #96CDC7
tetradic
#C796CD #CDAC96 #9CCD96 #96B7CD
square
#C796CD #CDAC96 #9CCD96 #96B7CD
split-complementary
#C796CD #B7CD96 #96CDAC
monochromatic
#954B9E #B16DB9 #C796CD #DDBFE1 #F3E9F4

Accessibility & contrast

On white

2.42
#C796CD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.67
#C796CD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C796CD
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C796CD#FFFFFF#000000##000000
##C796CD1.002.428.678.67
#FFFFFF2.421.0021.0021.00
#0000008.6721.001.001.00
##0000008.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#91A3CF
Deuteranopia (green-blind)
#9CA8CB
Tritanopia (blue-blind)
#C99BA9
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #c796cd;
/* rgb */ color: rgb(199, 150, 205);
/* oklch */ color: oklch(73.8% 0.095 322.8);
Tailwind
colors: {
  custom: {
    50: '#d8b5dc',
    500: '#c796cd',
    950: '#000000',
  },
}
SCSS
$custom: #c796cd;
$custom-light: #d8b5dc;
$custom-dark: #000000;
JSON
{
  "hex": "#c796cd",
  "rgb": {
    "r": 199,
    "g": 150,
    "b": 205
  },
  "hsl": {
    "h": 293.455,
    "s": 35.484,
    "l": 69.608
  },
  "oklch": {
    "l": 0.73752,
    "c": 0.09455,
    "h": 322.8
  },
  "luminance": 0.38363
}

Semantic roles & 50–950 ramp

primary
#C796CD
secondary
#D9E7D8
accent
#AE3744
background
#FDFBFD
surface
#FAF6FB
border
#D3D0D4
text
#141115
muted
#838083

Preview Lab

Preview with #C796CD

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

Preview Lab → · Contrast checker → · Palette generator →

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