#C798EA#C798EA

#C798EA is a light, vivid violet. Relative luminance 0.405; OKLCH L 75.3% C 0.125 H 309.9°. Best body text is #000000 at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#C798EA
RGBrgb(199, 152, 234)
HSLhsl(274, 66%, 76%)
HSVhsv(274, 35%, 92%)
CMYKcmyk(15%, 35%, 0%, 8.2%)
CIE-LABlab(69.85, 32.58, -34.70)
CIE-LCHlch(69.85, 47.60, 313.19°)
OKLaboklab(75.31% 0.08 -0.0956)
OKLCHoklch(75.31% 0.125 309.9)
XYZxyz(49.6300, 40.5397, 83.0364)
Luminance0.4054 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C798EA #BBEA98
analogous
#9E98EA #C798EA #EA98E4
triadic
#C798EA #EAC798 #98EAC7
tetradic
#C798EA #EA9E98 #BBEA98 #98E4EA
square
#C798EA #EA9E98 #BBEA98 #98E4EA
split-complementary
#C798EA #E4EA98 #98EA9E
monochromatic
#9032D5 #AB65E0 #C798EA #E3CBF4 #F1E6FA

Accessibility & contrast

On white

2.31
#C798EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.11
#C798EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C798EA
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C798EA#FFFFFF#000000##000000
##C798EA1.002.319.119.11
#FFFFFF2.311.0021.0021.00
#0000009.1121.001.001.00
##0000009.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#89A8ED
Deuteranopia (green-blind)
#93ACE8
Tritanopia (blue-blind)
#C3A4B6
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #c798ea;
/* rgb */ color: rgb(199, 152, 234);
/* oklch */ color: oklch(75.3% 0.125 309.9);
Tailwind
colors: {
  custom: {
    50: '#d9b7f1',
    500: '#c798ea',
    950: '#000000',
  },
}
SCSS
$custom: #c798ea;
$custom-light: #d9b7f1;
$custom-dark: #000000;
JSON
{
  "hex": "#c798ea",
  "rgb": {
    "r": 199,
    "g": 152,
    "b": 234
  },
  "hsl": {
    "h": 274.39,
    "s": 66.129,
    "l": 75.686
  },
  "oklch": {
    "l": 0.75307,
    "c": 0.12467,
    "h": 309.9
  },
  "luminance": 0.40539
}

Semantic roles & 50–950 ramp

primary
#C798EA
secondary
#E4F1DA
accent
#CE1865
background
#FDFBFE
surface
#FAF6FD
border
#D3D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #C798EA

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

Preview Lab → · Contrast checker → · Palette generator →

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