#C798DC#C798DC

#C798DC is a light, moderate purple. Relative luminance 0.398; OKLCH L 74.7% C 0.108 H 315.1°. Best body text is #000000 at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#C798DC
RGBrgb(199, 152, 220)
HSLhsl(281, 49%, 73%)
HSVhsv(281, 31%, 86%)
CMYKcmyk(9.5%, 30.9%, 0%, 13.7%)
CIE-LABlab(69.30, 29.65, -27.86)
CIE-LCHlch(69.30, 40.68, 316.78°)
OKLaboklab(74.71% 0.0765 -0.0762)
OKLCHoklch(74.71% 0.108 315.1)
XYZxyz(47.6977, 39.7668, 72.8593)
Luminance0.3977 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C798DC #ADDC98
analogous
#A598DC #C798DC #DC98CF
triadic
#C798DC #DCC798 #98DCC7
tetradic
#C798DC #DCA598 #ADDC98 #98CFDC
square
#C798DC #DCA598 #ADDC98 #98CFDC
split-complementary
#C798DC #CFDC98 #98DCA5
monochromatic
#943FBA #AE6ACC #C798DC #E0C6EC #F3E8F7

Accessibility & contrast

On white

2.35
#C798DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.95
#C798DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C798DC
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C798DC#FFFFFF#000000##000000
##C798DC1.002.358.958.95
#FFFFFF2.351.0021.0021.00
#0000008.9521.001.001.00
##0000008.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8EA6DF
Deuteranopia (green-blind)
#99ABDA
Tritanopia (blue-blind)
#C6A0B1
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #c798dc;
/* rgb */ color: rgb(199, 152, 220);
/* oklch */ color: oklch(74.7% 0.108 315.1);
Tailwind
colors: {
  custom: {
    50: '#d8b6e7',
    500: '#c798dc',
    950: '#000000',
  },
}
SCSS
$custom: #c798dc;
$custom-light: #d8b6e7;
$custom-dark: #000000;
JSON
{
  "hex": "#c798dc",
  "rgb": {
    "r": 199,
    "g": 152,
    "b": 220
  },
  "hsl": {
    "h": 281.471,
    "s": 49.275,
    "l": 72.941
  },
  "oklch": {
    "l": 0.74708,
    "c": 0.10795,
    "h": 315.1
  },
  "luminance": 0.39766
}

Semantic roles & 50–950 ramp

primary
#C798DC
secondary
#E2EEDD
accent
#BD2957
background
#FDFBFE
surface
#FAF6FC
border
#D3D0D5
text
#141116
muted
#838084

Preview Lab

Preview with #C798DC

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

Preview Lab → · Contrast checker → · Palette generator →

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