#796AB2#796AB2

#796AB2 is a mid, moderate violet. Relative luminance 0.176; OKLCH L 56.9% C 0.110 H 292.1°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#796AB2
RGBrgb(121, 106, 178)
HSLhsl(253, 32%, 56%)
HSVhsv(253, 40%, 70%)
CMYKcmyk(32%, 40.4%, 0%, 30.2%)
CIE-LABlab(48.99, 22.49, -36.25)
CIE-LCHlch(48.99, 42.66, 301.81°)
OKLaboklab(56.92% 0.0413 -0.1015)
OKLCHoklch(56.92% 0.11 292.1)
XYZxyz(21.0730, 17.5870, 44.3952)
Luminance0.1759 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796AB2 #A3B26A
analogous
#6A7FB2 #796AB2 #9D6AB2
triadic
#796AB2 #B2796A #6AB279
tetradic
#796AB2 #B26A7F #A3B26A #6AB29D
square
#796AB2 #B26A7F #A3B26A #6AB29D
split-complementary
#796AB2 #B29D6A #7FB26A
monochromatic
#42376B #5B4C93 #796AB2 #9D92C7 #C2BBDC

Accessibility & contrast

On white

4.65
#796AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #796AB2
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796AB2#FFFFFF#000000##FFFFFF
##796AB21.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5475B5
Deuteranopia (green-blind)
#5673B0
Tritanopia (blue-blind)
#6C7785
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #796ab2;
/* rgb */ color: rgb(121, 106, 178);
/* oklch */ color: oklch(56.9% 0.110 292.1);
Tailwind
colors: {
  custom: {
    50: '#a294c9',
    500: '#796ab2',
    950: '#000000',
  },
}
SCSS
$custom: #796ab2;
$custom-light: #a294c9;
$custom-dark: #000000;
JSON
{
  "hex": "#796ab2",
  "rgb": {
    "r": 121,
    "g": 106,
    "b": 178
  },
  "hsl": {
    "h": 252.5,
    "s": 31.858,
    "l": 55.686
  },
  "oklch": {
    "l": 0.56915,
    "c": 0.10957,
    "h": 292.1
  },
  "luminance": 0.17587
}

Semantic roles & 50–950 ramp

primary
#796AB2
secondary
#C5CBAD
accent
#C860B2
background
#FAF9FC
surface
#F4F1F8
border
#CECBD1
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #796AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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