#C798E9#C798E9

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

Color values

HEX#C798E9
RGBrgb(199, 152, 233)
HSLhsl(275, 65%, 75%)
HSVhsv(275, 35%, 91%)
CMYKcmyk(14.6%, 34.8%, 0%, 8.6%)
CIE-LABlab(69.81, 32.36, -34.22)
CIE-LCHlch(69.81, 47.10, 313.40°)
OKLaboklab(75.26% 0.0797 -0.0943)
OKLCHoklch(75.26% 0.123 310.2)
XYZxyz(49.4868, 40.4824, 82.2819)
Luminance0.4048 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C798E9 #BAE998
analogous
#9E98E9 #C798E9 #E998E2
triadic
#C798E9 #E9C798 #98E9C7
tetradic
#C798E9 #E99E98 #BAE998 #98E2E9
square
#C798E9 #E99E98 #BAE998 #98E2E9
split-complementary
#C798E9 #E2E998 #98E99E
monochromatic
#9033D3 #AC66DE #C798E9 #E2CAF4 #F1E6FA

Accessibility & contrast

On white

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

On black

9.10
#C798E9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C798E9
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C798E9#FFFFFF#000000##000000
##C798E91.002.319.109.10
#FFFFFF2.311.0021.0021.00
#0000009.1021.001.001.00
##0000009.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#89A8EC
Deuteranopia (green-blind)
#94ABE7
Tritanopia (blue-blind)
#C3A3B6
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #c798e9;
/* rgb */ color: rgb(199, 152, 233);
/* oklch */ color: oklch(75.3% 0.123 310.2);
Tailwind
colors: {
  custom: {
    50: '#d9b7f0',
    500: '#c798e9',
    950: '#000000',
  },
}
SCSS
$custom: #c798e9;
$custom-light: #d9b7f0;
$custom-dark: #000000;
JSON
{
  "hex": "#c798e9",
  "rgb": {
    "r": 199,
    "g": 152,
    "b": 233
  },
  "hsl": {
    "h": 274.815,
    "s": 64.8,
    "l": 75.49
  },
  "oklch": {
    "l": 0.75263,
    "c": 0.12346,
    "h": 310.2
  },
  "luminance": 0.40482
}

Semantic roles & 50–950 ramp

primary
#C798E9
secondary
#E4F1DA
accent
#CD1964
background
#FDFBFE
surface
#FAF6FD
border
#D3D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #C798E9

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

Preview Lab → · Contrast checker → · Palette generator →

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