#C797DA#C797DA

#C797DA is a light, moderate purple. Relative luminance 0.393; OKLCH L 74.4% C 0.107 H 316.2°. Best body text is #000000 at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#C797DA
RGBrgb(199, 151, 218)
HSLhsl(283, 48%, 72%)
HSVhsv(283, 31%, 85%)
CMYKcmyk(8.7%, 30.7%, 0%, 14.5%)
CIE-LABlab(69.00, 29.79, -27.23)
CIE-LCHlch(69.00, 40.36, 317.57°)
OKLaboklab(74.45% 0.0775 -0.0744)
OKLCHoklch(74.45% 0.107 316.2)
XYZxyz(47.2728, 39.3382, 71.4188)
Luminance0.3934 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C797DA #AADA97
analogous
#A597DA #C797DA #DA97CC
triadic
#C797DA #DAC797 #97DAC7
tetradic
#C797DA #DAA597 #AADA97 #97CCDA
square
#C797DA #DAA597 #AADA97 #97CCDA
split-complementary
#C797DA #CCDA97 #97DAA5
monochromatic
#9541B6 #AF6ACA #C797DA #DFC4EA #F3E8F7

Accessibility & contrast

On white

2.37
#C797DA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.87
#C797DA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C797DA
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C797DA#FFFFFF#000000##000000
##C797DA1.002.378.878.87
#FFFFFF2.371.0021.0021.00
#0000008.8721.001.001.00
##0000008.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8EA5DD
Deuteranopia (green-blind)
#99AAD8
Tritanopia (blue-blind)
#C79FAF
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #c797da;
/* rgb */ color: rgb(199, 151, 218);
/* oklch */ color: oklch(74.4% 0.107 316.2);
Tailwind
colors: {
  custom: {
    50: '#d8b6e5',
    500: '#c797da',
    950: '#000000',
  },
}
SCSS
$custom: #c797da;
$custom-light: #d8b6e5;
$custom-dark: #000000;
JSON
{
  "hex": "#c797da",
  "rgb": {
    "r": 199,
    "g": 151,
    "b": 218
  },
  "hsl": {
    "h": 282.985,
    "s": 47.518,
    "l": 72.353
  },
  "oklch": {
    "l": 0.74449,
    "c": 0.10738,
    "h": 316.2
  },
  "luminance": 0.39337
}

Semantic roles & 50–950 ramp

primary
#C797DA
secondary
#E2EEDD
accent
#BB2B54
background
#FDFBFE
surface
#FAF6FC
border
#D3D0D5
text
#141115
muted
#838084

Preview Lab

Preview with #C797DA

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

Preview Lab → · Contrast checker → · Palette generator →

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