#C798CA#C798CA

#C798CA is a light, moderate purple. Relative luminance 0.389; OKLCH L 74.0% C 0.088 H 324.4°. Best body text is #000000 at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#C798CA
RGBrgb(199, 152, 202)
HSLhsl(296, 32%, 69%)
HSVhsv(296, 25%, 79%)
CMYKcmyk(1.5%, 24.8%, 0%, 20.8%)
CIE-LABlab(68.65, 26.08, -18.90)
CIE-LCHlch(68.65, 32.21, 324.08°)
OKLaboklab(74% 0.0714 -0.051)
OKLCHoklch(74% 0.088 324.4)
XYZxyz(45.4409, 38.8640, 60.9735)
Luminance0.3886 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C798CA #9BCA98
analogous
#AE98CA #C798CA #CA98B4
triadic
#C798CA #CAC798 #98CAC7
tetradic
#C798CA #CAAE98 #9BCA98 #98B4CA
square
#C798CA #CAAE98 #9BCA98 #98B4CA
split-complementary
#C798CA #B4CA98 #98CAAE
monochromatic
#944F99 #B170B5 #C798CA #DDC0DF #F3E9F4

Accessibility & contrast

On white

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

On black

8.77
#C798CA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C798CA
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C798CA#FFFFFF#000000##000000
##C798CA1.002.398.778.77
#FFFFFF2.391.0021.0021.00
#0000008.7721.001.001.00
##0000008.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#94A4CC
Deuteranopia (green-blind)
#9FA9C8
Tritanopia (blue-blind)
#CA9CA9
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #c798ca;
/* rgb */ color: rgb(199, 152, 202);
/* oklch */ color: oklch(74.0% 0.088 324.4);
Tailwind
colors: {
  custom: {
    50: '#d8b6da',
    500: '#c798ca',
    950: '#000000',
  },
}
SCSS
$custom: #c798ca;
$custom-light: #d8b6da;
$custom-dark: #000000;
JSON
{
  "hex": "#c798ca",
  "rgb": {
    "r": 199,
    "g": 152,
    "b": 202
  },
  "hsl": {
    "h": 296.4,
    "s": 32.051,
    "l": 69.412
  },
  "oklch": {
    "l": 0.73997,
    "c": 0.08773,
    "h": 324.4
  },
  "luminance": 0.38863
}

Semantic roles & 50–950 ramp

primary
#C798CA
secondary
#D9E6D8
accent
#AB3B41
background
#FDFBFD
surface
#FAF6FA
border
#D3D0D3
text
#141114
muted
#838083

Preview Lab

Preview with #C798CA

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

Preview Lab → · Contrast checker → · Palette generator →

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