#C797FC#C797FC

#C797FC is a light, vivid violet. Relative luminance 0.413; OKLCH L 76.0% C 0.148 H 305.0°. Best body text is #000000 at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#C797FC
RGBrgb(199, 151, 252)
HSLhsl(269, 94%, 79%)
HSVhsv(269, 40%, 99%)
CMYKcmyk(21%, 40.1%, 0%, 1.2%)
CIE-LABlab(70.39, 37.06, -43.69)
CIE-LCHlch(70.39, 57.30, 310.31°)
OKLaboklab(75.96% 0.0851 -0.1215)
OKLCHoklch(75.96% 0.148 305)
XYZxyz(52.1869, 41.3039, 97.2997)
Luminance0.4130 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C797FC #CCFC97
analogous
#979AFC #C797FC #FA97FC
triadic
#C797FC #FCC797 #97FCC7
tetradic
#C797FC #FC979A #CCFC97 #97FCFA
square
#C797FC #FC979A #CCFC97 #97FCFA
split-complementary
#C797FC #FCFA97 #9AFC97
monochromatic
#8720F9 #A75CFA #C797FC #E7D2FE #EFE1FE

Accessibility & contrast

On white

2.27
#C797FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.26
#C797FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C797FC
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C797FC#FFFFFF#000000##000000
##C797FC1.002.279.269.26
#FFFFFF2.271.0021.0021.00
#0000009.2621.001.001.00
##0000009.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7FABFF
Deuteranopia (green-blind)
#8AACF9
Tritanopia (blue-blind)
#BFA7BE
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #c797fc;
/* rgb */ color: rgb(199, 151, 252);
/* oklch */ color: oklch(76.0% 0.148 305.0);
Tailwind
colors: {
  custom: {
    50: '#d9b6fd',
    500: '#c797fc',
    950: '#000000',
  },
}
SCSS
$custom: #c797fc;
$custom-light: #d9b6fd;
$custom-dark: #000000;
JSON
{
  "hex": "#c797fc",
  "rgb": {
    "r": 199,
    "g": 151,
    "b": 252
  },
  "hsl": {
    "h": 268.515,
    "s": 94.393,
    "l": 79.02
  },
  "oklch": {
    "l": 0.75964,
    "c": 0.14833,
    "h": 305
  },
  "luminance": 0.41304
}

Semantic roles & 50–950 ramp

primary
#C797FC
secondary
#E6F6D5
accent
#E60078
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #C797FC

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

Preview Lab → · Contrast checker → · Palette generator →

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