#C797EB#C797EB

#C797EB is a light, vivid violet. Relative luminance 0.403; OKLCH L 75.2% C 0.128 H 309.8°. Best body text is #000000 at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#C797EB
RGBrgb(199, 151, 235)
HSLhsl(274, 68%, 76%)
HSVhsv(274, 36%, 92%)
CMYKcmyk(15.3%, 35.7%, 0%, 7.8%)
CIE-LABlab(69.66, 33.34, -35.54)
CIE-LCHlch(69.66, 48.73, 313.17°)
OKLaboklab(75.18% 0.0816 -0.098)
OKLCHoklch(75.18% 0.128 309.8)
XYZxyz(49.6125, 40.2741, 83.7412)
Luminance0.4027 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C797EB #BBEB97
analogous
#9D97EB #C797EB #EB97E5
triadic
#C797EB #EBC797 #97EBC7
tetradic
#C797EB #EB9D97 #BBEB97 #97E5EB
square
#C797EB #EB9D97 #BBEB97 #97E5EB
split-complementary
#C797EB #E5EB97 #97EB9D
monochromatic
#9030D7 #AB64E1 #C797EB #E3CAF5 #F1E5FA

Accessibility & contrast

On white

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

On black

9.05
#C797EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C797EB
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C797EB#FFFFFF#000000##000000
##C797EB1.002.329.059.05
#FFFFFF2.321.0021.0021.00
#0000009.0521.001.001.00
##0000009.0521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c797eb;
/* rgb */ color: rgb(199, 151, 235);
/* oklch */ color: oklch(75.2% 0.128 309.8);
Tailwind
colors: {
  custom: {
    50: '#d9b6f1',
    500: '#c797eb',
    950: '#000000',
  },
}
SCSS
$custom: #c797eb;
$custom-light: #d9b6f1;
$custom-dark: #000000;
JSON
{
  "hex": "#c797eb",
  "rgb": {
    "r": 199,
    "g": 151,
    "b": 235
  },
  "hsl": {
    "h": 274.286,
    "s": 67.742,
    "l": 75.686
  },
  "oklch": {
    "l": 0.75178,
    "c": 0.12757,
    "h": 309.8
  },
  "luminance": 0.40273
}

Semantic roles & 50–950 ramp

primary
#C797EB
secondary
#E4F2D9
accent
#D01665
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #C797EB

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

Preview Lab → · Contrast checker → · Palette generator →

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