#C797CD#C797CD

#C797CD is a light, moderate purple. Relative luminance 0.387; OKLCH L 73.9% C 0.093 H 322.7°. Best body text is #000000 at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#C797CD
RGBrgb(199, 151, 205)
HSLhsl(293, 35%, 70%)
HSVhsv(293, 26%, 80%)
CMYKcmyk(2.9%, 26.3%, 0%, 19.6%)
CIE-LABlab(68.52, 27.21, -20.76)
CIE-LCHlch(68.52, 34.23, 322.66°)
OKLaboklab(73.93% 0.0738 -0.0562)
OKLCHoklch(73.93% 0.093 322.7)
XYZxyz(45.6379, 38.6843, 62.8085)
Luminance0.3868 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C797CD #9DCD97
analogous
#AC97CD #C797CD #CD97B8
triadic
#C797CD #CDC797 #97CDC7
tetradic
#C797CD #CDAC97 #9DCD97 #97B8CD
square
#C797CD #CDAC97 #9DCD97 #97B8CD
split-complementary
#C797CD #B8CD97 #97CDAC
monochromatic
#954C9E #B16EB9 #C797CD #DDC0E1 #F4EAF5

Accessibility & contrast

On white

2.40
#C797CD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.74
#C797CD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C797CD
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C797CD#FFFFFF#000000##000000
##C797CD1.002.408.748.74
#FFFFFF2.401.0021.0021.00
#0000008.7421.001.001.00
##0000008.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#92A4CF
Deuteranopia (green-blind)
#9DA9CB
Tritanopia (blue-blind)
#C99CAA
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #c797cd;
/* rgb */ color: rgb(199, 151, 205);
/* oklch */ color: oklch(73.9% 0.093 322.7);
Tailwind
colors: {
  custom: {
    50: '#d8b6dc',
    500: '#c797cd',
    950: '#000000',
  },
}
SCSS
$custom: #c797cd;
$custom-light: #d8b6dc;
$custom-dark: #000000;
JSON
{
  "hex": "#c797cd",
  "rgb": {
    "r": 199,
    "g": 151,
    "b": 205
  },
  "hsl": {
    "h": 293.333,
    "s": 35.065,
    "l": 69.804
  },
  "oklch": {
    "l": 0.73931,
    "c": 0.09275,
    "h": 322.7
  },
  "luminance": 0.38683
}

Semantic roles & 50–950 ramp

primary
#C797CD
secondary
#DAE8D8
accent
#AE3845
background
#FDFBFD
surface
#FAF6FB
border
#D3D0D4
text
#141115
muted
#838083

Preview Lab

Preview with #C797CD

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

Preview Lab → · Contrast checker → · Palette generator →

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