#C797CA#C797CA

#C797CA is a light, moderate purple. Relative luminance 0.385; OKLCH L 73.8% C 0.090 H 324.5°. Best body text is #000000 at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#C797CA
RGBrgb(199, 151, 202)
HSLhsl(296, 32%, 69%)
HSVhsv(296, 25%, 79%)
CMYKcmyk(1.5%, 25.2%, 0%, 20.8%)
CIE-LABlab(68.42, 26.63, -19.25)
CIE-LCHlch(68.42, 32.87, 324.14°)
OKLaboklab(73.82% 0.0729 -0.052)
OKLCHoklch(73.82% 0.09 324.5)
XYZxyz(45.2793, 38.5408, 60.9196)
Luminance0.3854 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C797CA #9ACA97
analogous
#AE97CA #C797CA #CA97B4
triadic
#C797CA #CAC797 #97CAC7
tetradic
#C797CA #CAAE97 #9ACA97 #97B4CA
square
#C797CA #CAAE97 #9ACA97 #97B4CA
split-complementary
#C797CA #B4CA97 #97CAAE
monochromatic
#944E99 #B16EB5 #C797CA #DDC0DF #F3E8F3

Accessibility & contrast

On white

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

On black

8.71
#C797CA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C797CA
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C797CA#FFFFFF#000000##000000
##C797CA1.002.418.718.71
#FFFFFF2.411.0021.0021.00
#0000008.7121.001.001.00
##0000008.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#93A3CC
Deuteranopia (green-blind)
#9EA9C8
Tritanopia (blue-blind)
#CA9CA9
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #c797ca;
/* rgb */ color: rgb(199, 151, 202);
/* oklch */ color: oklch(73.8% 0.090 324.5);
Tailwind
colors: {
  custom: {
    50: '#d8b6da',
    500: '#c797ca',
    950: '#000000',
  },
}
SCSS
$custom: #c797ca;
$custom-light: #d8b6da;
$custom-dark: #000000;
JSON
{
  "hex": "#c797ca",
  "rgb": {
    "r": 199,
    "g": 151,
    "b": 202
  },
  "hsl": {
    "h": 296.471,
    "s": 32.484,
    "l": 69.216
  },
  "oklch": {
    "l": 0.73816,
    "c": 0.08954,
    "h": 324.5
  },
  "luminance": 0.3854
}

Semantic roles & 50–950 ramp

primary
#C797CA
secondary
#D8E6D7
accent
#AB3A41
background
#FDFBFD
surface
#FAF6FA
border
#D3D0D3
text
#141114
muted
#838083

Preview Lab

Preview with #C797CA

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

Preview Lab → · Contrast checker → · Palette generator →

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