#C798E7#C798E7

#C798E7 is a light, vivid violet. Relative luminance 0.404; OKLCH L 75.2% C 0.121 H 310.9°. Best body text is #000000 at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#C798E7
RGBrgb(199, 152, 231)
HSLhsl(276, 62%, 75%)
HSVhsv(276, 34%, 91%)
CMYKcmyk(13.9%, 34.2%, 0%, 9.4%)
CIE-LABlab(69.73, 31.94, -33.25)
CIE-LCHlch(69.73, 46.10, 313.85°)
OKLaboklab(75.18% 0.0793 -0.0915)
OKLCHoklch(75.18% 0.121 310.9)
XYZxyz(49.2027, 40.3688, 80.7858)
Luminance0.4037 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C798E7 #B8E798
analogous
#9F98E7 #C798E7 #E798E0
triadic
#C798E7 #E7C798 #98E7C7
tetradic
#C798E7 #E79F98 #B8E798 #98E0E7
square
#C798E7 #E79F98 #B8E798 #98E0E7
split-complementary
#C798E7 #E0E798 #98E79F
monochromatic
#9135D0 #AC66DB #C798E7 #E2CAF3 #F2E6F9

Accessibility & contrast

On white

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

On black

9.07
#C798E7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C798E7
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C798E7#FFFFFF#000000##000000
##C798E71.002.319.079.07
#FFFFFF2.311.0021.0021.00
#0000009.0721.001.001.00
##0000009.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8AA8EA
Deuteranopia (green-blind)
#94ABE5
Tritanopia (blue-blind)
#C4A3B5
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #c798e7;
/* rgb */ color: rgb(199, 152, 231);
/* oklch */ color: oklch(75.2% 0.121 310.9);
Tailwind
colors: {
  custom: {
    50: '#d9b7ef',
    500: '#c798e7',
    950: '#000000',
  },
}
SCSS
$custom: #c798e7;
$custom-light: #d9b7ef;
$custom-dark: #000000;
JSON
{
  "hex": "#c798e7",
  "rgb": {
    "r": 199,
    "g": 152,
    "b": 231
  },
  "hsl": {
    "h": 275.696,
    "s": 62.205,
    "l": 75.098
  },
  "oklch": {
    "l": 0.75176,
    "c": 0.12104,
    "h": 310.9
  },
  "luminance": 0.40368
}

Semantic roles & 50–950 ramp

primary
#C798E7
secondary
#E3F1DA
accent
#CA1C62
background
#FDFBFE
surface
#FAF6FD
border
#D3D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #C798E7

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

Preview Lab → · Contrast checker → · Palette generator →

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