#C797CB#C797CB

#C797CB is a light, moderate purple. Relative luminance 0.386; OKLCH L 73.9% C 0.091 H 323.9°. Best body text is #000000 at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#C797CB
RGBrgb(199, 151, 203)
HSLhsl(295, 33%, 69%)
HSVhsv(295, 26%, 80%)
CMYKcmyk(2%, 25.6%, 0%, 20.4%)
CIE-LABlab(68.45, 26.83, -19.76)
CIE-LCHlch(68.45, 33.32, 323.63°)
OKLaboklab(73.85% 0.0732 -0.0534)
OKLCHoklch(73.85% 0.091 323.9)
XYZxyz(45.3980, 38.5883, 61.5452)
Luminance0.3859 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C797CB #9BCB97
analogous
#AD97CB #C797CB #CB97B5
triadic
#C797CB #CBC797 #97CBC7
tetradic
#C797CB #CBAD97 #9BCB97 #97B5CB
square
#C797CB #CBAD97 #9BCB97 #97B5CB
split-complementary
#C797CB #B5CB97 #97CBAD
monochromatic
#944D9A #B16EB7 #C797CB #DDC0DF #F3E9F4

Accessibility & contrast

On white

2.41
#C797CB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.72
#C797CB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C797CB
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C797CB#FFFFFF#000000##000000
##C797CB1.002.418.728.72
#FFFFFF2.411.0021.0021.00
#0000008.7221.001.001.00
##0000008.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#93A3CD
Deuteranopia (green-blind)
#9EA9C9
Tritanopia (blue-blind)
#C99CA9
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #c797cb;
/* rgb */ color: rgb(199, 151, 203);
/* oklch */ color: oklch(73.9% 0.091 323.9);
Tailwind
colors: {
  custom: {
    50: '#d8b6db',
    500: '#c797cb',
    950: '#000000',
  },
}
SCSS
$custom: #c797cb;
$custom-light: #d8b6db;
$custom-dark: #000000;
JSON
{
  "hex": "#c797cb",
  "rgb": {
    "r": 199,
    "g": 151,
    "b": 203
  },
  "hsl": {
    "h": 295.385,
    "s": 33.333,
    "l": 69.412
  },
  "oklch": {
    "l": 0.73854,
    "c": 0.0906,
    "h": 323.9
  },
  "luminance": 0.38587
}

Semantic roles & 50–950 ramp

primary
#C797CB
secondary
#D9E6D7
accent
#AC3942
background
#FDFBFD
surface
#FAF6FA
border
#D3D0D3
text
#141115
muted
#838083

Preview Lab

Preview with #C797CB

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

Preview Lab → · Contrast checker → · Palette generator →

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