#C798EB#C798EB

#C798EB is a light, vivid violet. Relative luminance 0.406; OKLCH L 75.4% C 0.126 H 309.6°. Best body text is #000000 at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#C798EB
RGBrgb(199, 152, 235)
HSLhsl(274, 67%, 76%)
HSVhsv(274, 35%, 92%)
CMYKcmyk(15.3%, 35.3%, 0%, 7.8%)
CIE-LABlab(69.89, 32.79, -35.19)
CIE-LCHlch(69.89, 48.10, 312.98°)
OKLaboklab(75.35% 0.0802 -0.097)
OKLCHoklch(75.35% 0.126 309.6)
XYZxyz(49.7741, 40.5973, 83.7951)
Luminance0.4060 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C798EB #BCEB98
analogous
#9D98EB #C798EB #EB98E5
triadic
#C798EB #EBC798 #98EBC7
tetradic
#C798EB #EB9D98 #BCEB98 #98E5EB
square
#C798EB #EB9D98 #BCEB98 #98E5EB
split-complementary
#C798EB #E5EB98 #98EB9D
monochromatic
#8F32D7 #AB65E1 #C798EB #E3CBF5 #F1E5FA

Accessibility & contrast

On white

2.30
#C798EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.12
#C798EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C798EB
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C798EB#FFFFFF#000000##000000
##C798EB1.002.309.129.12
#FFFFFF2.301.0021.0021.00
#0000009.1221.001.001.00
##0000009.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#88A9EE
Deuteranopia (green-blind)
#93ACE9
Tritanopia (blue-blind)
#C3A4B7
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #c798eb;
/* rgb */ color: rgb(199, 152, 235);
/* oklch */ color: oklch(75.4% 0.126 309.6);
Tailwind
colors: {
  custom: {
    50: '#d9b7f1',
    500: '#c798eb',
    950: '#000000',
  },
}
SCSS
$custom: #c798eb;
$custom-light: #d9b7f1;
$custom-dark: #000000;
JSON
{
  "hex": "#c798eb",
  "rgb": {
    "r": 199,
    "g": 152,
    "b": 235
  },
  "hsl": {
    "h": 273.976,
    "s": 67.48,
    "l": 75.882
  },
  "oklch": {
    "l": 0.75351,
    "c": 0.12588,
    "h": 309.6
  },
  "luminance": 0.40597
}

Semantic roles & 50–950 ramp

primary
#C798EB
secondary
#E4F2D9
accent
#CF1666
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #C798EB

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

Preview Lab → · Contrast checker → · Palette generator →

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