#796C1B#796C1B

#796C1B is a mid, moderate yellow. Relative luminance 0.149; OKLCH L 52.8% C 0.099 H 99.8°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#796C1B
RGBrgb(121, 108, 27)
HSLhsl(52, 64%, 29%)
HSVhsv(52, 78%, 47%)
CMYKcmyk(0%, 10.7%, 77.7%, 52.5%)
CIE-LABlab(45.46, -4.36, 44.25)
CIE-LCHlch(45.46, 44.46, 95.63°)
OKLaboklab(52.83% -0.0167 0.0973)
OKLCHoklch(52.83% 0.099 99.8)
XYZxyz(13.4462, 14.8699, 3.1986)
Luminance0.1487 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796C1B #1B2879
analogous
#793D1B #796C1B #57791B
triadic
#796C1B #1B796C #6C1B79
tetradic
#796C1B #1B793D #1B2879 #791B57
square
#796C1B #1B793D #1B2879 #791B57
split-complementary
#796C1B #1B5779 #3D1B79
monochromatic
#191606 #473F10 #796C1B #AB9926 #D3BE3B

Accessibility & contrast

On white

5.28
#796C1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#796C1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796C1B
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796C1B#FFFFFF#000000##FFFFFF
##796C1B1.005.283.975.28
#FFFFFF5.281.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#77690C
Deuteranopia (green-blind)
#7B6E20
Tritanopia (blue-blind)
#83645C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #796c1b;
/* rgb */ color: rgb(121, 108, 27);
/* oklch */ color: oklch(52.8% 0.099 99.8);
Tailwind
colors: {
  custom: {
    50: '#a3955e',
    500: '#796c1b',
    950: '#000000',
  },
}
SCSS
$custom: #796c1b;
$custom-light: #a3955e;
$custom-dark: #000000;
JSON
{
  "hex": "#796c1b",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 27
  },
  "hsl": {
    "h": 51.702,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52831,
    "c": 0.0987,
    "h": 99.8
  },
  "luminance": 0.14869
}

Semantic roles & 50–950 ramp

primary
#796C1B
secondary
#4351AD
accent
#58E741
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D05
muted
#7F7E79

Preview Lab

Preview with #796C1B

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

Preview Lab → · Contrast checker → · Palette generator →

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