#796CA8#796CA8

#796CA8 is a mid, moderate violet. Relative luminance 0.176; OKLCH L 56.8% C 0.092 H 293.2°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#796CA8
RGBrgb(121, 108, 168)
HSLhsl(253, 26%, 54%)
HSVhsv(253, 36%, 66%)
CMYKcmyk(28%, 35.7%, 0%, 34.1%)
CIE-LABlab(49.03, 18.65, -30.36)
CIE-LCHlch(49.03, 35.63, 301.56°)
OKLaboklab(56.79% 0.0362 -0.0845)
OKLCHoklch(56.79% 0.092 293.2)
XYZxyz(20.3139, 17.6169, 39.3684)
Luminance0.1762 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CA8 #9BA86C
analogous
#6C7DA8 #796CA8 #976CA8
triadic
#796CA8 #A8796C #6CA879
tetradic
#796CA8 #A86C7D #9BA86C #6CA897
square
#796CA8 #A86C7D #9BA86C #6CA897
split-complementary
#796CA8 #A8976C #7DA86C
monochromatic
#423960 #5C5087 #796CA8 #9C92BF #BFB9D6

Accessibility & contrast

On white

4.64
#796CA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#796CA8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #796CA8
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CA8#FFFFFF#000000##FFFFFF
##796CA81.004.644.524.64
#FFFFFF4.641.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C75AA
Deuteranopia (green-blind)
#5D73A6
Tritanopia (blue-blind)
#6F7682
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #796ca8;
/* rgb */ color: rgb(121, 108, 168);
/* oklch */ color: oklch(56.8% 0.092 293.2);
Tailwind
colors: {
  custom: {
    50: '#a196c2',
    500: '#796ca8',
    950: '#000000',
  },
}
SCSS
$custom: #796ca8;
$custom-light: #a196c2;
$custom-dark: #000000;
JSON
{
  "hex": "#796ca8",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 168
  },
  "hsl": {
    "h": 253,
    "s": 25.641,
    "l": 54.118
  },
  "oklch": {
    "l": 0.56787,
    "c": 0.09191,
    "h": 293.2
  },
  "luminance": 0.17617
}

Semantic roles & 50–950 ramp

primary
#796CA8
secondary
#BFC5AB
accent
#C266AE
background
#FAF9FB
surface
#F3F2F7
border
#CDCCD0
text
#0F0D12
muted
#7F7E81

Preview Lab

Preview with #796CA8

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

Preview Lab → · Contrast checker → · Palette generator →

#796CA8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva