#796F1B#796F1B

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

Color values

HEX#796F1B
RGBrgb(121, 111, 27)
HSLhsl(54, 64%, 29%)
HSVhsv(54, 78%, 47%)
CMYKcmyk(0%, 8.3%, 77.7%, 52.5%)
CIE-LABlab(46.33, -6.07, 45.07)
CIE-LCHlch(46.33, 45.48, 97.67°)
OKLaboklab(53.53% -0.0216 0.099)
OKLCHoklch(53.53% 0.101 102.3)
XYZxyz(13.7681, 15.5136, 3.3059)
Luminance0.1551 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796F1B #1B2579
analogous
#79401B #796F1B #54791B
triadic
#796F1B #1B796F #6F1B79
tetradic
#796F1B #1B7940 #1B2579 #791B54
square
#796F1B #1B7940 #1B2579 #791B54
split-complementary
#796F1B #1B5479 #401B79
monochromatic
#191706 #474110 #796F1B #AB9D26 #D3C33B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##796F1B#FFFFFF#000000##FFFFFF
##796F1B1.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)
#7A6B0A
Deuteranopia (green-blind)
#7D7021
Tritanopia (blue-blind)
#83675F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #796f1b;
/* rgb */ color: rgb(121, 111, 27);
/* oklch */ color: oklch(53.5% 0.101 102.3);
Tailwind
colors: {
  custom: {
    50: '#a3985e',
    500: '#796f1b',
    950: '#000000',
  },
}
SCSS
$custom: #796f1b;
$custom-light: #a3985e;
$custom-dark: #000000;
JSON
{
  "hex": "#796f1b",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 27
  },
  "hsl": {
    "h": 53.617,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.53526,
    "c": 0.10134,
    "h": 102.3
  },
  "luminance": 0.15513
}

Semantic roles & 50–950 ramp

primary
#796F1B
secondary
#434EAD
accent
#53E741
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #796F1B

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

Preview Lab → · Contrast checker → · Palette generator →

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