#C796EF#C796EF

#C796EF is a light, vivid violet. Relative luminance 0.402; OKLCH L 75.2% C 0.134 H 308.7°. Best body text is #000000 at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#C796EF
RGBrgb(199, 150, 239)
HSLhsl(273, 74%, 76%)
HSVhsv(273, 37%, 94%)
CMYKcmyk(16.7%, 37.2%, 0%, 6.3%)
CIE-LABlab(69.60, 34.75, -37.83)
CIE-LCHlch(69.60, 51.37, 312.57°)
OKLaboklab(75.19% 0.0839 -0.1046)
OKLCHoklch(75.19% 0.134 308.7)
XYZxyz(50.0366, 40.1873, 86.7656)
Luminance0.4019 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C796EF #BEEF96
analogous
#9B96EF #C796EF #EF96EB
triadic
#C796EF #EFC796 #96EFC7
tetradic
#C796EF #EF9B96 #BEEF96 #96EBEF
square
#C796EF #EF9B96 #BEEF96 #96EBEF
split-complementary
#C796EF #EBEF96 #96EF9B
monochromatic
#8E2CDF #AB61E7 #C796EF #E3CBF7 #F1E4FB

Accessibility & contrast

On white

2.32
#C796EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.04
#C796EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C796EF
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C796EF#FFFFFF#000000##000000
##C796EF1.002.329.049.04
#FFFFFF2.321.0021.0021.00
#0000009.0421.001.001.00
##0000009.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#84A8F2
Deuteranopia (green-blind)
#8FABEC
Tritanopia (blue-blind)
#C2A3B7
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #c796ef;
/* rgb */ color: rgb(199, 150, 239);
/* oklch */ color: oklch(75.2% 0.134 308.7);
Tailwind
colors: {
  custom: {
    50: '#d9b5f4',
    500: '#c796ef',
    950: '#000000',
  },
}
SCSS
$custom: #c796ef;
$custom-light: #d9b5f4;
$custom-dark: #000000;
JSON
{
  "hex": "#c796ef",
  "rgb": {
    "r": 199,
    "g": 150,
    "b": 239
  },
  "hsl": {
    "h": 273.034,
    "s": 73.554,
    "l": 76.275
  },
  "oklch": {
    "l": 0.75186,
    "c": 0.1341,
    "h": 308.7
  },
  "luminance": 0.40187
}

Semantic roles & 50–950 ramp

primary
#C796EF
secondary
#E4F3D8
accent
#D61069
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #C796EF

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

Preview Lab → · Contrast checker → · Palette generator →

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