#C798CD#C798CD

#C798CD is a light, moderate purple. Relative luminance 0.390; OKLCH L 74.1% C 0.091 H 322.6°. Best body text is #000000 at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#C798CD
RGBrgb(199, 152, 205)
HSLhsl(293, 35%, 70%)
HSVhsv(293, 26%, 80%)
CMYKcmyk(2.9%, 25.9%, 0%, 19.6%)
CIE-LABlab(68.76, 26.66, -20.40)
CIE-LCHlch(68.76, 33.57, 322.57°)
OKLaboklab(74.11% 0.0723 -0.0552)
OKLCHoklch(74.11% 0.091 322.6)
XYZxyz(45.7995, 39.0075, 62.8623)
Luminance0.3901 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C798CD #9ECD98
analogous
#AD98CD #C798CD #CD98B8
triadic
#C798CD #CDC798 #98CDC7
tetradic
#C798CD #CDAD98 #9ECD98 #98B8CD
square
#C798CD #CDAD98 #9ECD98 #98B8CD
split-complementary
#C798CD #B8CD98 #98CDAD
monochromatic
#954D9E #B16FB9 #C798CD #DDC1E1 #F4EAF5

Accessibility & contrast

On white

2.39
#C798CD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.80
#C798CD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C798CD
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C798CD#FFFFFF#000000##000000
##C798CD1.002.398.808.80
#FFFFFF2.391.0021.0021.00
#0000008.8021.001.001.00
##0000008.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#93A4CF
Deuteranopia (green-blind)
#9EAACB
Tritanopia (blue-blind)
#C99DAB
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #c798cd;
/* rgb */ color: rgb(199, 152, 205);
/* oklch */ color: oklch(74.1% 0.091 322.6);
Tailwind
colors: {
  custom: {
    50: '#d8b6dc',
    500: '#c798cd',
    950: '#000000',
  },
}
SCSS
$custom: #c798cd;
$custom-light: #d8b6dc;
$custom-dark: #000000;
JSON
{
  "hex": "#c798cd",
  "rgb": {
    "r": 199,
    "g": 152,
    "b": 205
  },
  "hsl": {
    "h": 293.208,
    "s": 34.641,
    "l": 70
  },
  "oklch": {
    "l": 0.74111,
    "c": 0.09095,
    "h": 322.6
  },
  "luminance": 0.39006
}

Semantic roles & 50–950 ramp

primary
#C798CD
secondary
#DBE8D9
accent
#AD3845
background
#FDFBFD
surface
#FAF6FB
border
#D3D0D4
text
#141115
muted
#838083

Preview Lab

Preview with #C798CD

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

Preview Lab → · Contrast checker → · Palette generator →

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