#796A8A#796A8A

#796A8A is a mid, muted violet. Relative luminance 0.162; OKLCH L 55.0% C 0.052 H 306.0°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#796A8A
RGBrgb(121, 106, 138)
HSLhsl(268, 13%, 48%)
HSVhsv(268, 23%, 54%)
CMYKcmyk(12.3%, 23.2%, 0%, 45.9%)
CIE-LABlab(47.25, 12.51, -15.41)
CIE-LCHlch(47.25, 19.86, 309.07°)
OKLaboklab(55% 0.0305 -0.0419)
OKLCHoklch(55% 0.052 306)
XYZxyz(17.6258, 16.2081, 26.2397)
Luminance0.1621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796A8A #7B8A6A
analogous
#6A6B8A #796A8A #896A8A
triadic
#796A8A #8A796A #6A8A79
tetradic
#796A8A #8A6A6B #7B8A6A #6A8A89
square
#796A8A #8A6A6B #7B8A6A #6A8A89
split-complementary
#796A8A #8A896A #6B8A6A
monochromatic
#3C3545 #5B4F67 #796A8A #988BA6 #B7AEC1

Accessibility & contrast

On white

4.95
#796A8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#796A8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796A8A
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796A8A#FFFFFF#000000##FFFFFF
##796A8A1.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#646F8B
Deuteranopia (green-blind)
#677089
Tritanopia (blue-blind)
#776E75
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #796a8a;
/* rgb */ color: rgb(121, 106, 138);
/* oklch */ color: oklch(55.0% 0.052 306.0);
Tailwind
colors: {
  custom: {
    50: '#a094ac',
    500: '#796a8a',
    950: '#000000',
  },
}
SCSS
$custom: #796a8a;
$custom-light: #a094ac;
$custom-dark: #000000;
JSON
{
  "hex": "#796a8a",
  "rgb": {
    "r": 121,
    "g": 106,
    "b": 138
  },
  "hsl": {
    "h": 268.125,
    "s": 13.115,
    "l": 47.843
  },
  "oklch": {
    "l": 0.55004,
    "c": 0.05187,
    "h": 306
  },
  "luminance": 0.16208
}

Semantic roles & 50–950 ramp

primary
#796A8A
secondary
#A8B0A0
accent
#B67296
background
#F9F9FA
surface
#F2F1F4
border
#CCCBCE
text
#0E0D10
muted
#7E7E7F

Preview Lab

Preview with #796A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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