#C796EE#C796EE

#C796EE is a light, vivid violet. Relative luminance 0.401; OKLCH L 75.1% C 0.133 H 309.0°. Best body text is #000000 at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#C796EE
RGBrgb(199, 150, 238)
HSLhsl(273, 72%, 76%)
HSVhsv(273, 37%, 93%)
CMYKcmyk(16.4%, 37%, 0%, 6.7%)
CIE-LABlab(69.56, 34.53, -37.35)
CIE-LCHlch(69.56, 50.87, 312.76°)
OKLaboklab(75.14% 0.0837 -0.1032)
OKLCHoklch(75.14% 0.133 309)
XYZxyz(49.8893, 40.1284, 85.9897)
Luminance0.4013 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C796EE #BDEE96
analogous
#9B96EE #C796EE #EE96E9
triadic
#C796EE #EEC796 #96EEC7
tetradic
#C796EE #EE9B96 #BDEE96 #96E9EE
square
#C796EE #EE9B96 #BDEE96 #96E9EE
split-complementary
#C796EE #E9EE96 #96EE9B
monochromatic
#8F2DDD #AB61E5 #C796EE #E3CBF7 #F1E5FB

Accessibility & contrast

On white

2.33
#C796EE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.03
#C796EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C796EE
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C796EE#FFFFFF#000000##000000
##C796EE1.002.339.039.03
#FFFFFF2.331.0021.0021.00
#0000009.0321.001.001.00
##0000009.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#85A8F1
Deuteranopia (green-blind)
#90ABEB
Tritanopia (blue-blind)
#C2A3B7
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #c796ee;
/* rgb */ color: rgb(199, 150, 238);
/* oklch */ color: oklch(75.1% 0.133 309.0);
Tailwind
colors: {
  custom: {
    50: '#d9b5f4',
    500: '#c796ee',
    950: '#000000',
  },
}
SCSS
$custom: #c796ee;
$custom-light: #d9b5f4;
$custom-dark: #000000;
JSON
{
  "hex": "#c796ee",
  "rgb": {
    "r": 199,
    "g": 150,
    "b": 238
  },
  "hsl": {
    "h": 273.409,
    "s": 72.131,
    "l": 76.078
  },
  "oklch": {
    "l": 0.7514,
    "c": 0.13288,
    "h": 309
  },
  "luminance": 0.40128
}

Semantic roles & 50–950 ramp

primary
#C796EE
secondary
#E4F2D9
accent
#D41168
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #C796EE

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

Preview Lab → · Contrast checker → · Palette generator →

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