#C797EA#C797EA

#C797EA is a light, vivid violet. Relative luminance 0.402; OKLCH L 75.1% C 0.126 H 310.1°. Best body text is #000000 at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#C797EA
RGBrgb(199, 151, 234)
HSLhsl(275, 66%, 75%)
HSVhsv(275, 35%, 92%)
CMYKcmyk(15%, 35.5%, 0%, 8.2%)
CIE-LABlab(69.62, 33.13, -35.06)
CIE-LCHlch(69.62, 48.23, 313.38°)
OKLaboklab(75.13% 0.0814 -0.0966)
OKLCHoklch(75.13% 0.126 310.1)
XYZxyz(49.4684, 40.2165, 82.9825)
Luminance0.4022 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C797EA #BAEA97
analogous
#9D97EA #C797EA #EA97E3
triadic
#C797EA #EAC797 #97EAC7
tetradic
#C797EA #EA9D97 #BAEA97 #97E3EA
square
#C797EA #EA9D97 #BAEA97 #97E3EA
split-complementary
#C797EA #E3EA97 #97EA9D
monochromatic
#9031D5 #AC64E0 #C797EA #E2CAF4 #F1E6FA

Accessibility & contrast

On white

2.32
#C797EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.04
#C797EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C797EA
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C797EA#FFFFFF#000000##000000
##C797EA1.002.329.049.04
#FFFFFF2.321.0021.0021.00
#0000009.0421.001.001.00
##0000009.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#87A8ED
Deuteranopia (green-blind)
#92ABE8
Tritanopia (blue-blind)
#C3A3B6
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #c797ea;
/* rgb */ color: rgb(199, 151, 234);
/* oklch */ color: oklch(75.1% 0.126 310.1);
Tailwind
colors: {
  custom: {
    50: '#d9b6f1',
    500: '#c797ea',
    950: '#000000',
  },
}
SCSS
$custom: #c797ea;
$custom-light: #d9b6f1;
$custom-dark: #000000;
JSON
{
  "hex": "#c797ea",
  "rgb": {
    "r": 199,
    "g": 151,
    "b": 234
  },
  "hsl": {
    "h": 274.699,
    "s": 66.4,
    "l": 75.49
  },
  "oklch": {
    "l": 0.75133,
    "c": 0.12636,
    "h": 310.1
  },
  "luminance": 0.40216
}

Semantic roles & 50–950 ramp

primary
#C797EA
secondary
#E4F1DA
accent
#CE1764
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #C797EA

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

Preview Lab → · Contrast checker → · Palette generator →

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