#C797CF#C797CF

#C797CF is a light, moderate purple. Relative luminance 0.388; OKLCH L 74.0% C 0.095 H 321.6°. Best body text is #000000 at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#C797CF
RGBrgb(199, 151, 207)
HSLhsl(291, 37%, 70%)
HSVhsv(291, 27%, 81%)
CMYKcmyk(3.9%, 27.1%, 0%, 18.8%)
CIE-LABlab(68.59, 27.60, -21.76)
CIE-LCHlch(68.59, 35.15, 321.75°)
OKLaboklab(74.01% 0.0744 -0.059)
OKLCHoklch(74.01% 0.095 321.6)
XYZxyz(45.8809, 38.7814, 64.0880)
Luminance0.3878 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C797CF #9FCF97
analogous
#AB97CF #C797CF #CF97BB
triadic
#C797CF #CFC797 #97CFC7
tetradic
#C797CF #CFAB97 #9FCF97 #97BBCF
square
#C797CF #CFAB97 #9FCF97 #97BBCF
split-complementary
#C797CF #BBCF97 #97CFAB
monochromatic
#954AA1 #B06DBC #C797CF #DEC1E2 #F4EAF5

Accessibility & contrast

On white

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

On black

8.76
#C797CF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C797CF
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C797CF#FFFFFF#000000##000000
##C797CF1.002.408.768.76
#FFFFFF2.401.0021.0021.00
#0000008.7621.001.001.00
##0000008.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#91A4D1
Deuteranopia (green-blind)
#9CA9CD
Tritanopia (blue-blind)
#C99DAB
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #c797cf;
/* rgb */ color: rgb(199, 151, 207);
/* oklch */ color: oklch(74.0% 0.095 321.6);
Tailwind
colors: {
  custom: {
    50: '#d8b6dd',
    500: '#c797cf',
    950: '#000000',
  },
}
SCSS
$custom: #c797cf;
$custom-light: #d8b6dd;
$custom-dark: #000000;
JSON
{
  "hex": "#c797cf",
  "rgb": {
    "r": 199,
    "g": 151,
    "b": 207
  },
  "hsl": {
    "h": 291.429,
    "s": 36.842,
    "l": 70.196
  },
  "oklch": {
    "l": 0.74009,
    "c": 0.09494,
    "h": 321.6
  },
  "luminance": 0.3878
}

Semantic roles & 50–950 ramp

primary
#C797CF
secondary
#DBE9D9
accent
#B03647
background
#FDFBFD
surface
#FAF6FB
border
#D3D0D4
text
#141115
muted
#838083

Preview Lab

Preview with #C797CF

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

Preview Lab → · Contrast checker → · Palette generator →

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