#796A1F#796A1F

#796A1F is a mid, moderate yellow. Relative luminance 0.145; OKLCH L 52.4% C 0.094 H 97.6°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#796A1F
RGBrgb(121, 106, 31)
HSLhsl(50, 59%, 30%)
HSVhsv(50, 74%, 47%)
CMYKcmyk(0%, 12.4%, 74.4%, 52.5%)
CIE-LABlab(44.90, -3.02, 42.09)
CIE-LCHlch(44.90, 42.20, 94.10°)
OKLaboklab(52.4% -0.0125 0.0935)
OKLCHoklch(52.4% 0.094 97.6)
XYZxyz(13.2872, 14.4726, 3.3897)
Luminance0.1447 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796A1F #1F2E79
analogous
#793D1F #796A1F #5B791F
triadic
#796A1F #1F796A #6A1F79
tetradic
#796A1F #1F793D #1F2E79 #791F5B
square
#796A1F #1F793D #1F2E79 #791F5B
split-complementary
#796A1F #1F5B79 #3D1F79
monochromatic
#181506 #483F13 #796A1F #AA952B #CFB843

Accessibility & contrast

On white

5.39
#796A1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #796A1F
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796A1F#FFFFFF#000000##FFFFFF
##796A1F1.005.393.895.39
#FFFFFF5.391.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756713
Deuteranopia (green-blind)
#796C23
Tritanopia (blue-blind)
#83625B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #796a1f;
/* rgb */ color: rgb(121, 106, 31);
/* oklch */ color: oklch(52.4% 0.094 97.6);
Tailwind
colors: {
  custom: {
    50: '#a39460',
    500: '#796a1f',
    950: '#000000',
  },
}
SCSS
$custom: #796a1f;
$custom-light: #a39460;
$custom-dark: #000000;
JSON
{
  "hex": "#796a1f",
  "rgb": {
    "r": 121,
    "g": 106,
    "b": 31
  },
  "hsl": {
    "h": 50,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.52402,
    "c": 0.09434,
    "h": 97.6
  },
  "luminance": 0.14472
}

Semantic roles & 50–950 ramp

primary
#796A1F
secondary
#4758AC
accent
#60E245
background
#FAF9F5
surface
#F4F1EA
border
#CECBC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #796A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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