#C797EF#C797EF

#C797EF is a light, vivid violet. Relative luminance 0.405; OKLCH L 75.4% C 0.132 H 308.5°. Best body text is #000000 at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#C797EF
RGBrgb(199, 151, 239)
HSLhsl(273, 73%, 76%)
HSVhsv(273, 37%, 94%)
CMYKcmyk(16.7%, 36.8%, 0%, 6.3%)
CIE-LABlab(69.83, 34.20, -37.48)
CIE-LCHlch(69.83, 50.74, 312.38°)
OKLaboklab(75.36% 0.0825 -0.1036)
OKLCHoklch(75.36% 0.132 308.5)
XYZxyz(50.1969, 40.5079, 86.8190)
Luminance0.4051 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C797EF #BFEF97
analogous
#9B97EF #C797EF #EF97EB
triadic
#C797EF #EFC797 #97EFC7
tetradic
#C797EF #EF9B97 #BFEF97 #97EBEF
square
#C797EF #EF9B97 #BFEF97 #97EBEF
split-complementary
#C797EF #EBEF97 #97EF9B
monochromatic
#8E2DDF #AA62E7 #C797EF #E4CCF7 #F1E4FB

Accessibility & contrast

On white

2.31
#C797EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.10
#C797EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C797EF
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C797EF#FFFFFF#000000##000000
##C797EF1.002.319.109.10
#FFFFFF2.311.0021.0021.00
#0000009.1021.001.001.00
##0000009.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#85A9F2
Deuteranopia (green-blind)
#90ABED
Tritanopia (blue-blind)
#C2A4B8
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #c797ef;
/* rgb */ color: rgb(199, 151, 239);
/* oklch */ color: oklch(75.4% 0.132 308.5);
Tailwind
colors: {
  custom: {
    50: '#d9b6f4',
    500: '#c797ef',
    950: '#000000',
  },
}
SCSS
$custom: #c797ef;
$custom-light: #d9b6f4;
$custom-dark: #000000;
JSON
{
  "hex": "#c797ef",
  "rgb": {
    "r": 199,
    "g": 151,
    "b": 239
  },
  "hsl": {
    "h": 272.727,
    "s": 73.333,
    "l": 76.471
  },
  "oklch": {
    "l": 0.75358,
    "c": 0.13243,
    "h": 308.5
  },
  "luminance": 0.40507
}

Semantic roles & 50–950 ramp

primary
#C797EF
secondary
#E4F3D8
accent
#D5106A
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #C797EF

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

Preview Lab → · Contrast checker → · Palette generator →

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