#C798DA#C798DA

#C798DA is a light, moderate purple. Relative luminance 0.397; OKLCH L 74.6% C 0.106 H 316.0°. Best body text is #000000 at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#C798DA
RGBrgb(199, 152, 218)
HSLhsl(283, 47%, 73%)
HSVhsv(283, 30%, 85%)
CMYKcmyk(8.7%, 30.3%, 0%, 14.5%)
CIE-LABlab(69.23, 29.24, -26.87)
CIE-LCHlch(69.23, 39.71, 317.42°)
OKLaboklab(74.63% 0.076 -0.0734)
OKLCHoklch(74.63% 0.106 316)
XYZxyz(47.4344, 39.6615, 71.4727)
Luminance0.3966 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C798DA #ABDA98
analogous
#A698DA #C798DA #DA98CC
triadic
#C798DA #DAC798 #98DAC7
tetradic
#C798DA #DAA698 #ABDA98 #98CCDA
square
#C798DA #DAA698 #ABDA98 #98CCDA
split-complementary
#C798DA #CCDA98 #98DAA6
monochromatic
#9541B6 #AF6BCA #C798DA #DFC5EA #F3E8F7

Accessibility & contrast

On white

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

On black

8.93
#C798DA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C798DA
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C798DA#FFFFFF#000000##000000
##C798DA1.002.358.938.93
#FFFFFF2.351.0021.0021.00
#0000008.9321.001.001.00
##0000008.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8FA6DD
Deuteranopia (green-blind)
#99AAD8
Tritanopia (blue-blind)
#C6A0B0
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #c798da;
/* rgb */ color: rgb(199, 152, 218);
/* oklch */ color: oklch(74.6% 0.106 316.0);
Tailwind
colors: {
  custom: {
    50: '#d8b6e5',
    500: '#c798da',
    950: '#000000',
  },
}
SCSS
$custom: #c798da;
$custom-light: #d8b6e5;
$custom-dark: #000000;
JSON
{
  "hex": "#c798da",
  "rgb": {
    "r": 199,
    "g": 152,
    "b": 218
  },
  "hsl": {
    "h": 282.727,
    "s": 47.143,
    "l": 72.549
  },
  "oklch": {
    "l": 0.74626,
    "c": 0.10562,
    "h": 316
  },
  "luminance": 0.39661
}

Semantic roles & 50–950 ramp

primary
#C798DA
secondary
#E2EEDD
accent
#BA2B54
background
#FDFBFE
surface
#FAF6FC
border
#D3D0D5
text
#141115
muted
#838084

Preview Lab

Preview with #C798DA

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

Preview Lab → · Contrast checker → · Palette generator →

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