#796A1A#796A1A

#796A1A is a mid, moderate yellow. Relative luminance 0.144; OKLCH L 52.4% C 0.098 H 98.1°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#796A1A
RGBrgb(121, 106, 26)
HSLhsl(51, 65%, 29%)
HSVhsv(51, 79%, 47%)
CMYKcmyk(0%, 12.4%, 78.5%, 52.5%)
CIE-LABlab(44.87, -3.27, 44.08)
CIE-LCHlch(44.87, 44.20, 94.24°)
OKLaboklab(52.36% -0.0137 0.0967)
OKLCHoklch(52.36% 0.098 98.1)
XYZxyz(13.2263, 14.4483, 3.0692)
Luminance0.1445 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796A1A #1A2979
analogous
#793B1A #796A1A #59791A
triadic
#796A1A #1A796A #6A1A79
tetradic
#796A1A #1A793B #1A2979 #791A59
square
#796A1A #1A793B #1A2979 #791A59
split-complementary
#796A1A #1A5979 #3B1A79
monochromatic
#191605 #473E0F #796A1A #AB9625 #D4BC39

Accessibility & contrast

On white

5.40
#796A1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#796A1A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796A1A
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796A1A#FFFFFF#000000##FFFFFF
##796A1A1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#75670B
Deuteranopia (green-blind)
#796C1F
Tritanopia (blue-blind)
#83615B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #796a1a;
/* rgb */ color: rgb(121, 106, 26);
/* oklch */ color: oklch(52.4% 0.098 98.1);
Tailwind
colors: {
  custom: {
    50: '#a3945d',
    500: '#796a1a',
    950: '#000000',
  },
}
SCSS
$custom: #796a1a;
$custom-light: #a3945d;
$custom-dark: #000000;
JSON
{
  "hex": "#796a1a",
  "rgb": {
    "r": 121,
    "g": 106,
    "b": 26
  },
  "hsl": {
    "h": 50.526,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.52364,
    "c": 0.09767,
    "h": 98.1
  },
  "luminance": 0.14448
}

Semantic roles & 50–950 ramp

primary
#796A1A
secondary
#4152AD
accent
#5BE840
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #796A1A

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

Preview Lab → · Contrast checker → · Palette generator →

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