#796E1B#796E1B

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

Color values

HEX#796E1B
RGBrgb(121, 110, 27)
HSLhsl(53, 64%, 29%)
HSVhsv(53, 78%, 47%)
CMYKcmyk(0%, 9.1%, 77.7%, 52.5%)
CIE-LABlab(46.04, -5.50, 44.80)
CIE-LCHlch(46.04, 45.13, 97.00°)
OKLaboklab(53.29% -0.02 0.0984)
OKLCHoklch(53.29% 0.1 101.5)
XYZxyz(13.6596, 15.2966, 3.2697)
Luminance0.1530 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796E1B #1B2679
analogous
#793F1B #796E1B #55791B
triadic
#796E1B #1B796E #6E1B79
tetradic
#796E1B #1B793F #1B2679 #791B55
square
#796E1B #1B793F #1B2679 #791B55
split-complementary
#796E1B #1B5579 #3F1B79
monochromatic
#191706 #474110 #796E1B #AB9B26 #D3C13B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##796E1B#FFFFFF#000000##FFFFFF
##796E1B1.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)
#796B0B
Deuteranopia (green-blind)
#7C6F21
Tritanopia (blue-blind)
#83665E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #796e1b;
/* rgb */ color: rgb(121, 110, 27);
/* oklch */ color: oklch(53.3% 0.100 101.5);
Tailwind
colors: {
  custom: {
    50: '#a3975e',
    500: '#796e1b',
    950: '#000000',
  },
}
SCSS
$custom: #796e1b;
$custom-light: #a3975e;
$custom-dark: #000000;
JSON
{
  "hex": "#796e1b",
  "rgb": {
    "r": 121,
    "g": 110,
    "b": 27
  },
  "hsl": {
    "h": 52.979,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.53294,
    "c": 0.10043,
    "h": 101.5
  },
  "luminance": 0.15296
}

Semantic roles & 50–950 ramp

primary
#796E1B
secondary
#434FAD
accent
#55E741
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D05
muted
#7F7E79

Preview Lab

Preview with #796E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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