#796F1A#796F1A

#796F1A is a mid, moderate yellow. Relative luminance 0.155; OKLCH L 53.5% C 0.102 H 102.3°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#796F1A
RGBrgb(121, 111, 26)
HSLhsl(54, 65%, 29%)
HSVhsv(54, 79%, 47%)
CMYKcmyk(0%, 8.3%, 78.5%, 52.5%)
CIE-LABlab(46.32, -6.12, 45.44)
CIE-LCHlch(46.32, 45.85, 97.67°)
OKLaboklab(53.52% -0.0218 0.0996)
OKLCHoklch(53.52% 0.102 102.3)
XYZxyz(13.7567, 15.5090, 3.2460)
Luminance0.1551 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796F1A #1A2479
analogous
#79401A #796F1A #54791A
triadic
#796F1A #1A796F #6F1A79
tetradic
#796F1A #1A7940 #1A2479 #791A54
square
#796F1A #1A7940 #1A2479 #791A54
split-complementary
#796F1A #1A5479 #401A79
monochromatic
#191705 #47410F #796F1A #AB9D25 #D4C439

Accessibility & contrast

On white

5.12
#796F1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#796F1A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796F1A
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796F1A#FFFFFF#000000##FFFFFF
##796F1A1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B08
Deuteranopia (green-blind)
#7D7020
Tritanopia (blue-blind)
#83675F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #796f1a;
/* rgb */ color: rgb(121, 111, 26);
/* oklch */ color: oklch(53.5% 0.102 102.3);
Tailwind
colors: {
  custom: {
    50: '#a3985e',
    500: '#796f1a',
    950: '#000000',
  },
}
SCSS
$custom: #796f1a;
$custom-light: #a3985e;
$custom-dark: #000000;
JSON
{
  "hex": "#796f1a",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 26
  },
  "hsl": {
    "h": 53.684,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.53519,
    "c": 0.10196,
    "h": 102.3
  },
  "luminance": 0.15508
}

Semantic roles & 50–950 ramp

primary
#796F1A
secondary
#414DAD
accent
#52E840
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D05
muted
#7F7E79

Preview Lab

Preview with #796F1A

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

Preview Lab → · Contrast checker → · Palette generator →

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