#C797FF#C797FF

#C797FF is a light, vivid violet. Relative luminance 0.415; OKLCH L 76.1% C 0.152 H 304.3°. Best body text is #000000 at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#C797FF
RGBrgb(199, 151, 255)
HSLhsl(268, 100%, 80%)
HSVhsv(268, 41%, 100%)
CMYKcmyk(22%, 40.8%, 0%, 0%)
CIE-LABlab(70.52, 37.74, -45.12)
CIE-LCHlch(70.52, 58.82, 309.91°)
OKLaboklab(76.11% 0.0857 -0.1256)
OKLCHoklch(76.11% 0.152 304.3)
XYZxyz(52.6660, 41.4955, 99.8232)
Luminance0.4149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C797FF #CFFF97
analogous
#979BFF #C797FF #FB97FF
triadic
#C797FF #FFC797 #97FFC7
tetradic
#C797FF #FF979B #CFFF97 #97FFFB
square
#C797FF #FF979B #CFFF97 #97FFFB
split-complementary
#C797FF #FFFB97 #9BFF97
monochromatic
#851DFF #A65AFF #C797FF #E8D4FF #EFE0FF

Accessibility & contrast

On white

2.26
#C797FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.30
#C797FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C797FF
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C797FF#FFFFFF#000000##000000
##C797FF1.002.269.309.30
#FFFFFF2.261.0021.0021.00
#0000009.3021.001.001.00
##0000009.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7EABFF
Deuteranopia (green-blind)
#88ADFC
Tritanopia (blue-blind)
#BEA8BF
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #c797ff;
/* rgb */ color: rgb(199, 151, 255);
/* oklch */ color: oklch(76.1% 0.152 304.3);
Tailwind
colors: {
  custom: {
    50: '#dab6ff',
    500: '#c797ff',
    950: '#000000',
  },
}
SCSS
$custom: #c797ff;
$custom-light: #dab6ff;
$custom-dark: #000000;
JSON
{
  "hex": "#c797ff",
  "rgb": {
    "r": 199,
    "g": 151,
    "b": 255
  },
  "hsl": {
    "h": 267.692,
    "s": 100,
    "l": 79.608
  },
  "oklch": {
    "l": 0.76108,
    "c": 0.15202,
    "h": 304.3
  },
  "luminance": 0.41495
}

Semantic roles & 50–950 ramp

primary
#C797FF
secondary
#E7F7D4
accent
#E6007C
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #C797FF

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

Preview Lab → · Contrast checker → · Palette generator →

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