#796B8A#796B8A

#796B8A is a mid, muted violet. Relative luminance 0.164; OKLCH L 55.2% C 0.050 H 305.3°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#796B8A
RGBrgb(121, 107, 138)
HSLhsl(267, 13%, 48%)
HSVhsv(267, 22%, 54%)
CMYKcmyk(12.3%, 22.5%, 0%, 45.9%)
CIE-LABlab(47.51, 11.91, -15.01)
CIE-LCHlch(47.51, 19.16, 308.45°)
OKLaboklab(55.21% 0.0289 -0.0408)
OKLCHoklch(55.21% 0.05 305.3)
XYZxyz(17.7294, 16.4154, 26.2743)
Luminance0.1641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796B8A #7C8A6B
analogous
#6B6C8A #796B8A #886B8A
triadic
#796B8A #8A796B #6B8A79
tetradic
#796B8A #8A6B6C #7C8A6B #6B8A88
square
#796B8A #8A6B6C #7C8A6B #6B8A88
split-complementary
#796B8A #8A886B #6C8A6B
monochromatic
#3D3645 #5B5068 #796B8A #988CA6 #B7AFC1

Accessibility & contrast

On white

4.90
#796B8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#796B8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796B8A
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796B8A#FFFFFF#000000##FFFFFF
##796B8A1.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#66708B
Deuteranopia (green-blind)
#687189
Tritanopia (blue-blind)
#776F76
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #796b8a;
/* rgb */ color: rgb(121, 107, 138);
/* oklch */ color: oklch(55.2% 0.050 305.3);
Tailwind
colors: {
  custom: {
    50: '#a095ac',
    500: '#796b8a',
    950: '#000000',
  },
}
SCSS
$custom: #796b8a;
$custom-light: #a095ac;
$custom-dark: #000000;
JSON
{
  "hex": "#796b8a",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 138
  },
  "hsl": {
    "h": 267.097,
    "s": 12.653,
    "l": 48.039
  },
  "oklch": {
    "l": 0.55212,
    "c": 0.05002,
    "h": 305.3
  },
  "luminance": 0.16415
}

Semantic roles & 50–950 ramp

primary
#796B8A
secondary
#A9B0A1
accent
#B67297
background
#F9F9FA
surface
#F2F1F4
border
#CCCBCE
text
#0E0D10
muted
#7E7E7F

Preview Lab

Preview with #796B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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