#C796F8#C796F8

#C796F8 is a light, vivid violet. Relative luminance 0.407; OKLCH L 75.6% C 0.145 H 306.2°. Best body text is #000000 at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#C796F8
RGBrgb(199, 150, 248)
HSLhsl(270, 88%, 78%)
HSVhsv(270, 40%, 97%)
CMYKcmyk(19.8%, 39.5%, 0%, 2.7%)
CIE-LABlab(69.99, 36.72, -42.14)
CIE-LCHlch(69.99, 55.90, 311.07°)
OKLaboklab(75.6% 0.0857 -0.117)
OKLCHoklch(75.6% 0.145 306.2)
XYZxyz(51.3994, 40.7325, 93.9431)
Luminance0.4073 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C796F8 #C7F896
analogous
#9696F8 #C796F8 #F896F8
triadic
#C796F8 #F8C796 #96F8C7
tetradic
#C796F8 #F89696 #C7F896 #96F8F8
square
#C796F8 #F89696 #C7F896 #96F8F8
split-complementary
#C796F8 #F8F896 #96F896
monochromatic
#8A23F0 #A85DF4 #C796F8 #E6CFFC #F0E2FD

Accessibility & contrast

On white

2.30
#C796F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.15
#C796F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C796F8
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C796F8#FFFFFF#000000##000000
##C796F81.002.309.159.15
#FFFFFF2.301.0021.0021.00
#0000009.1521.001.001.00
##0000009.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#80A9FC
Deuteranopia (green-blind)
#8BABF5
Tritanopia (blue-blind)
#C0A5BB
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #c796f8;
/* rgb */ color: rgb(199, 150, 248);
/* oklch */ color: oklch(75.6% 0.145 306.2);
Tailwind
colors: {
  custom: {
    50: '#d9b5fb',
    500: '#c796f8',
    950: '#000000',
  },
}
SCSS
$custom: #c796f8;
$custom-light: #d9b5fb;
$custom-dark: #000000;
JSON
{
  "hex": "#c796f8",
  "rgb": {
    "r": 199,
    "g": 150,
    "b": 248
  },
  "hsl": {
    "h": 270,
    "s": 87.5,
    "l": 78.039
  },
  "oklch": {
    "l": 0.75604,
    "c": 0.14505,
    "h": 306.2
  },
  "luminance": 0.40732
}

Semantic roles & 50–950 ramp

primary
#C796F8
secondary
#E6F5D6
accent
#E40173
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #C796F8

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

Preview Lab → · Contrast checker → · Palette generator →

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