#796AA5#796AA5

#796AA5 is a mid, moderate violet. Relative luminance 0.171; OKLCH L 56.2% C 0.091 H 295.0°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#796AA5
RGBrgb(121, 106, 165)
HSLhsl(255, 25%, 53%)
HSVhsv(255, 36%, 65%)
CMYKcmyk(26.7%, 35.8%, 0%, 35.3%)
CIE-LABlab(48.37, 19.08, -29.63)
CIE-LCHlch(48.37, 35.24, 302.78°)
OKLaboklab(56.24% 0.0384 -0.0824)
OKLCHoklch(56.24% 0.091 295)
XYZxyz(19.8291, 17.0894, 37.8439)
Luminance0.1709 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796AA5 #96A56A
analogous
#6A78A5 #796AA5 #966AA5
triadic
#796AA5 #A5796A #6AA579
tetradic
#796AA5 #A56A78 #96A56A #6AA596
square
#796AA5 #A56A78 #96A56A #6AA596
split-complementary
#796AA5 #A5966A #78A56A
monochromatic
#41385D #5C4F83 #796AA5 #9B90BC #BEB6D3

Accessibility & contrast

On white

4.75
#796AA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#796AA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796AA5
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796AA5#FFFFFF#000000##FFFFFF
##796AA51.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B73A7
Deuteranopia (green-blind)
#5D72A3
Tritanopia (blue-blind)
#707480
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #796aa5;
/* rgb */ color: rgb(121, 106, 165);
/* oklch */ color: oklch(56.2% 0.091 295.0);
Tailwind
colors: {
  custom: {
    50: '#a194c0',
    500: '#796aa5',
    950: '#000000',
  },
}
SCSS
$custom: #796aa5;
$custom-light: #a194c0;
$custom-dark: #000000;
JSON
{
  "hex": "#796aa5",
  "rgb": {
    "r": 121,
    "g": 106,
    "b": 165
  },
  "hsl": {
    "h": 255.254,
    "s": 24.686,
    "l": 53.137
  },
  "oklch": {
    "l": 0.5624,
    "c": 0.09087,
    "h": 295
  },
  "luminance": 0.1709
}

Semantic roles & 50–950 ramp

primary
#796AA5
secondary
#BCC2A9
accent
#C167AA
background
#FAF9FB
surface
#F3F1F7
border
#CDCBD0
text
#0F0D12
muted
#7F7E81

Preview Lab

Preview with #796AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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