#C796F9#C796F9

#C796F9 is a light, vivid violet. Relative luminance 0.408; OKLCH L 75.7% C 0.146 H 306.0°. Best body text is #000000 at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#C796F9
RGBrgb(199, 150, 249)
HSLhsl(270, 89%, 78%)
HSVhsv(270, 40%, 98%)
CMYKcmyk(20.1%, 39.8%, 0%, 2.4%)
CIE-LABlab(70.03, 36.94, -42.62)
CIE-LCHlch(70.03, 56.40, 310.92°)
OKLaboklab(75.65% 0.0859 -0.1184)
OKLCHoklch(75.65% 0.146 306)
XYZxyz(51.5550, 40.7947, 94.7623)
Luminance0.4079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C796F9 #C8F996
analogous
#9696F9 #C796F9 #F896F9
triadic
#C796F9 #F9C796 #96F9C7
tetradic
#C796F9 #F99696 #C8F996 #96F9F8
square
#C796F9 #F99696 #C8F996 #96F9F8
split-complementary
#C796F9 #F9F896 #96F996
monochromatic
#8922F2 #A85CF6 #C796F9 #E6D0FC #F0E2FD

Accessibility & contrast

On white

2.29
#C796F9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.16
#C796F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C796F9
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C796F9#FFFFFF#000000##000000
##C796F91.002.299.169.16
#FFFFFF2.291.0021.0021.00
#0000009.1621.001.001.00
##0000009.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7FA9FD
Deuteranopia (green-blind)
#8BACF6
Tritanopia (blue-blind)
#C0A6BC
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #c796f9;
/* rgb */ color: rgb(199, 150, 249);
/* oklch */ color: oklch(75.7% 0.146 306.0);
Tailwind
colors: {
  custom: {
    50: '#d9b5fb',
    500: '#c796f9',
    950: '#000000',
  },
}
SCSS
$custom: #c796f9;
$custom-light: #d9b5fb;
$custom-dark: #000000;
JSON
{
  "hex": "#c796f9",
  "rgb": {
    "r": 199,
    "g": 150,
    "b": 249
  },
  "hsl": {
    "h": 269.697,
    "s": 89.189,
    "l": 78.235
  },
  "oklch": {
    "l": 0.75651,
    "c": 0.14627,
    "h": 306
  },
  "luminance": 0.40794
}

Semantic roles & 50–950 ramp

primary
#C796F9
secondary
#E6F5D6
accent
#E60074
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #C796F9

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

Preview Lab → · Contrast checker → · Palette generator →

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