#C797F7#C797F7

#C797F7 is a light, vivid violet. Relative luminance 0.410; OKLCH L 75.7% C 0.142 H 306.3°. Best body text is #000000 at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#C797F7
RGBrgb(199, 151, 247)
HSLhsl(270, 86%, 78%)
HSVhsv(270, 39%, 97%)
CMYKcmyk(19.4%, 38.9%, 0%, 3.1%)
CIE-LABlab(70.17, 35.95, -41.31)
CIE-LCHlch(70.17, 54.77, 311.03°)
OKLaboklab(75.73% 0.0842 -0.1146)
OKLCHoklch(75.73% 0.142 306.3)
XYZxyz(51.4050, 40.9911, 93.1816)
Luminance0.4099 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C797F7 #C7F797
analogous
#9797F7 #C797F7 #F797F7
triadic
#C797F7 #F7C797 #97F7C7
tetradic
#C797F7 #F79797 #C7F797 #97F7F7
square
#C797F7 #F79797 #C7F797 #97F7F7
split-complementary
#C797F7 #F7F797 #97F797
monochromatic
#8A25EE #A85EF3 #C797F7 #E6D0FB #F0E3FD

Accessibility & contrast

On white

2.28
#C797F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.20
#C797F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C797F7
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C797F7#FFFFFF#000000##000000
##C797F71.002.289.209.20
#FFFFFF2.281.0021.0021.00
#0000009.2021.001.001.00
##0000009.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#82AAFB
Deuteranopia (green-blind)
#8CACF4
Tritanopia (blue-blind)
#C0A6BB
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #c797f7;
/* rgb */ color: rgb(199, 151, 247);
/* oklch */ color: oklch(75.7% 0.142 306.3);
Tailwind
colors: {
  custom: {
    50: '#d9b6fa',
    500: '#c797f7',
    950: '#000000',
  },
}
SCSS
$custom: #c797f7;
$custom-light: #d9b6fa;
$custom-dark: #000000;
JSON
{
  "hex": "#c797f7",
  "rgb": {
    "r": 199,
    "g": 151,
    "b": 247
  },
  "hsl": {
    "h": 270,
    "s": 85.714,
    "l": 78.039
  },
  "oklch": {
    "l": 0.75727,
    "c": 0.14219,
    "h": 306.3
  },
  "luminance": 0.40991
}

Semantic roles & 50–950 ramp

primary
#C797F7
secondary
#E6F5D6
accent
#E20373
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #C797F7

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

Preview Lab → · Contrast checker → · Palette generator →

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