#C797DB#C797DB

#C797DB is a light, moderate purple. Relative luminance 0.394; OKLCH L 74.5% C 0.109 H 315.7°. Best body text is #000000 at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#C797DB
RGBrgb(199, 151, 219)
HSLhsl(282, 49%, 73%)
HSVhsv(282, 31%, 86%)
CMYKcmyk(9.1%, 31.1%, 0%, 14.1%)
CIE-LABlab(69.03, 29.99, -27.72)
CIE-LCHlch(69.03, 40.84, 317.25°)
OKLaboklab(74.49% 0.0777 -0.0758)
OKLCHoklch(74.49% 0.109 315.7)
XYZxyz(47.4040, 39.3907, 72.1101)
Luminance0.3939 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C797DB #ABDB97
analogous
#A597DB #C797DB #DB97CD
triadic
#C797DB #DBC797 #97DBC7
tetradic
#C797DB #DBA597 #ABDB97 #97CDDB
square
#C797DB #DBA597 #ABDB97 #97CDDB
split-complementary
#C797DB #CDDB97 #97DBA5
monochromatic
#9540B8 #AF6ACB #C797DB #DFC4EB #F3E8F7

Accessibility & contrast

On white

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

On black

8.88
#C797DB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C797DB
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C797DB#FFFFFF#000000##000000
##C797DB1.002.378.888.88
#FFFFFF2.371.0021.0021.00
#0000008.8821.001.001.00
##0000008.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8DA6DE
Deuteranopia (green-blind)
#98AAD9
Tritanopia (blue-blind)
#C69FB0
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #c797db;
/* rgb */ color: rgb(199, 151, 219);
/* oklch */ color: oklch(74.5% 0.109 315.7);
Tailwind
colors: {
  custom: {
    50: '#d8b6e6',
    500: '#c797db',
    950: '#000000',
  },
}
SCSS
$custom: #c797db;
$custom-light: #d8b6e6;
$custom-dark: #000000;
JSON
{
  "hex": "#c797db",
  "rgb": {
    "r": 199,
    "g": 151,
    "b": 219
  },
  "hsl": {
    "h": 282.353,
    "s": 48.571,
    "l": 72.549
  },
  "oklch": {
    "l": 0.7449,
    "c": 0.10854,
    "h": 315.7
  },
  "luminance": 0.3939
}

Semantic roles & 50–950 ramp

primary
#C797DB
secondary
#E2EEDD
accent
#BC2A55
background
#FDFBFE
surface
#FAF6FC
border
#D3D0D5
text
#141116
muted
#838084

Preview Lab

Preview with #C797DB

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

Preview Lab → · Contrast checker → · Palette generator →

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