#796F1F#796F1F

#796F1F is a mid, moderate yellow. Relative luminance 0.155; OKLCH L 53.6% C 0.099 H 102.0°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#796F1F
RGBrgb(121, 111, 31)
HSLhsl(53, 59%, 30%)
HSVhsv(53, 74%, 47%)
CMYKcmyk(0%, 8.3%, 74.4%, 52.5%)
CIE-LABlab(46.36, -5.87, 43.52)
CIE-LCHlch(46.36, 43.91, 97.68°)
OKLaboklab(53.56% -0.0206 0.0965)
OKLCHoklch(53.56% 0.099 102)
XYZxyz(13.8175, 15.5334, 3.5665)
Luminance0.1553 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796F1F #1F2979
analogous
#79421F #796F1F #56791F
triadic
#796F1F #1F796F #6F1F79
tetradic
#796F1F #1F7942 #1F2979 #791F56
square
#796F1F #1F7942 #1F2979 #791F56
split-complementary
#796F1F #1F5679 #421F79
monochromatic
#181606 #484213 #796F1F #AA9C2B #CFBF43

Accessibility & contrast

On white

5.11
#796F1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#796F1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796F1F
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796F1F#FFFFFF#000000##FFFFFF
##796F1F1.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #796f1f;
/* rgb */ color: rgb(121, 111, 31);
/* oklch */ color: oklch(53.6% 0.099 102.0);
Tailwind
colors: {
  custom: {
    50: '#a39861',
    500: '#796f1f',
    950: '#000000',
  },
}
SCSS
$custom: #796f1f;
$custom-light: #a39861;
$custom-dark: #000000;
JSON
{
  "hex": "#796f1f",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 31
  },
  "hsl": {
    "h": 53.333,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.53555,
    "c": 0.09871,
    "h": 102
  },
  "luminance": 0.15533
}

Semantic roles & 50–950 ramp

primary
#796F1F
secondary
#4753AC
accent
#57E245
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #796F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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