#796D1C#796D1C

#796D1C is a mid, moderate yellow. Relative luminance 0.151; OKLCH L 53.1% C 0.099 H 100.5°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#796D1C
RGBrgb(121, 109, 28)
HSLhsl(52, 62%, 29%)
HSVhsv(52, 77%, 47%)
CMYKcmyk(0%, 9.9%, 76.9%, 52.5%)
CIE-LABlab(45.75, -4.89, 44.14)
CIE-LCHlch(45.75, 44.41, 96.32°)
OKLaboklab(53.07% -0.0181 0.0973)
OKLCHoklch(53.07% 0.099 100.5)
XYZxyz(13.5640, 15.0867, 3.2959)
Luminance0.1509 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796D1C #1C2879
analogous
#793F1C #796D1C #57791C
triadic
#796D1C #1C796D #6D1C79
tetradic
#796D1C #1C793F #1C2879 #791C57
square
#796D1C #1C793F #1C2879 #791C57
split-complementary
#796D1C #1C5779 #3F1C79
monochromatic
#191606 #474010 #796D1C #AB9A28 #D2BF3D

Accessibility & contrast

On white

5.23
#796D1C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#796D1C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796D1C
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796D1C#FFFFFF#000000##FFFFFF
##796D1C1.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786A0D
Deuteranopia (green-blind)
#7B6E21
Tritanopia (blue-blind)
#83655D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #796d1c;
/* rgb */ color: rgb(121, 109, 28);
/* oklch */ color: oklch(53.1% 0.099 100.5);
Tailwind
colors: {
  custom: {
    50: '#a3965f',
    500: '#796d1c',
    950: '#000000',
  },
}
SCSS
$custom: #796d1c;
$custom-light: #a3965f;
$custom-dark: #000000;
JSON
{
  "hex": "#796d1c",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 28
  },
  "hsl": {
    "h": 52.258,
    "s": 62.416,
    "l": 29.216
  },
  "oklch": {
    "l": 0.53069,
    "c": 0.09892,
    "h": 100.5
  },
  "luminance": 0.15086
}

Semantic roles & 50–950 ramp

primary
#796D1C
secondary
#4451AD
accent
#57E542
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #796D1C

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

Preview Lab → · Contrast checker → · Palette generator →

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