#796E1F#796E1F

#796E1F is a mid, moderate yellow. Relative luminance 0.153; OKLCH L 53.3% C 0.098 H 101.2°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#796E1F
RGBrgb(121, 110, 31)
HSLhsl(53, 59%, 30%)
HSVhsv(53, 74%, 47%)
CMYKcmyk(0%, 9.1%, 74.4%, 52.5%)
CIE-LABlab(46.06, -5.30, 43.23)
CIE-LCHlch(46.06, 43.56, 96.99°)
OKLaboklab(53.32% -0.019 0.0959)
OKLCHoklch(53.32% 0.098 101.2)
XYZxyz(13.7090, 15.3164, 3.5303)
Luminance0.1532 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796E1F #1F2A79
analogous
#79411F #796E1F #57791F
triadic
#796E1F #1F796E #6E1F79
tetradic
#796E1F #1F7941 #1F2A79 #791F57
square
#796E1F #1F7941 #1F2A79 #791F57
split-complementary
#796E1F #1F5779 #411F79
monochromatic
#181606 #484213 #796E1F #AA9A2B #CFBE43

Accessibility & contrast

On white

5.17
#796E1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#796E1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796E1F
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796E1F#FFFFFF#000000##FFFFFF
##796E1F1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796B12
Deuteranopia (green-blind)
#7C6F24
Tritanopia (blue-blind)
#83665E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #796e1f;
/* rgb */ color: rgb(121, 110, 31);
/* oklch */ color: oklch(53.3% 0.098 101.2);
Tailwind
colors: {
  custom: {
    50: '#a39760',
    500: '#796e1f',
    950: '#000000',
  },
}
SCSS
$custom: #796e1f;
$custom-light: #a39760;
$custom-dark: #000000;
JSON
{
  "hex": "#796e1f",
  "rgb": {
    "r": 121,
    "g": 110,
    "b": 31
  },
  "hsl": {
    "h": 52.667,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.53323,
    "c": 0.09778,
    "h": 101.2
  },
  "luminance": 0.15316
}

Semantic roles & 50–950 ramp

primary
#796E1F
secondary
#4754AC
accent
#59E245
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #796E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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