#796B1B#796B1B

#796B1B is a mid, moderate yellow. Relative luminance 0.147; OKLCH L 52.6% C 0.098 H 98.9°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#796B1B
RGBrgb(121, 107, 27)
HSLhsl(51, 64%, 29%)
HSVhsv(51, 78%, 47%)
CMYKcmyk(0%, 11.6%, 77.7%, 52.5%)
CIE-LABlab(45.17, -3.79, 43.97)
CIE-LCHlch(45.17, 44.13, 94.93°)
OKLaboklab(52.6% -0.0151 0.0967)
OKLCHoklch(52.6% 0.098 98.9)
XYZxyz(13.3413, 14.6601, 3.1637)
Luminance0.1466 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796B1B #1B2979
analogous
#793C1B #796B1B #58791B
triadic
#796B1B #1B796B #6B1B79
tetradic
#796B1B #1B793C #1B2979 #791B58
square
#796B1B #1B793C #1B2979 #791B58
split-complementary
#796B1B #1B5879 #3C1B79
monochromatic
#191606 #473F10 #796B1B #AB9726 #D3BD3B

Accessibility & contrast

On white

5.34
#796B1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#796B1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796B1B
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796B1B#FFFFFF#000000##FFFFFF
##796B1B1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#76680C
Deuteranopia (green-blind)
#7A6D20
Tritanopia (blue-blind)
#83635C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #796b1b;
/* rgb */ color: rgb(121, 107, 27);
/* oklch */ color: oklch(52.6% 0.098 98.9);
Tailwind
colors: {
  custom: {
    50: '#a3955e',
    500: '#796b1b',
    950: '#000000',
  },
}
SCSS
$custom: #796b1b;
$custom-light: #a3955e;
$custom-dark: #000000;
JSON
{
  "hex": "#796b1b",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 27
  },
  "hsl": {
    "h": 51.064,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52601,
    "c": 0.09786,
    "h": 98.9
  },
  "luminance": 0.14659
}

Semantic roles & 50–950 ramp

primary
#796B1B
secondary
#4352AD
accent
#5AE741
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D05
muted
#7F7E79

Preview Lab

Preview with #796B1B

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

Preview Lab → · Contrast checker → · Palette generator →

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