#796C1D#796C1D

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

Color values

HEX#796C1D
RGBrgb(121, 108, 29)
HSLhsl(52, 61%, 29%)
HSVhsv(52, 76%, 47%)
CMYKcmyk(0%, 10.7%, 76%, 52.5%)
CIE-LABlab(45.47, -4.27, 43.47)
CIE-LCHlch(45.47, 43.68, 95.61°)
OKLaboklab(52.85% -0.0162 0.096)
OKLCHoklch(52.85% 0.097 99.6)
XYZxyz(13.4701, 14.8794, 3.3247)
Luminance0.1488 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796C1D #1D2A79
analogous
#793E1D #796C1D #58791D
triadic
#796C1D #1D796C #6C1D79
tetradic
#796C1D #1D793E #1D2A79 #791D58
square
#796C1D #1D793E #1D2A79 #791D58
split-complementary
#796C1D #1D5879 #3E1D79
monochromatic
#191606 #484011 #796C1D #AA9829 #D1BC3F

Accessibility & contrast

On white

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

On black

3.98
#796C1D on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##796C1D#FFFFFF#000000##FFFFFF
##796C1D1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#77690F
Deuteranopia (green-blind)
#7B6E22
Tritanopia (blue-blind)
#83645D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #796c1d;
/* rgb */ color: rgb(121, 108, 29);
/* oklch */ color: oklch(52.8% 0.097 99.6);
Tailwind
colors: {
  custom: {
    50: '#a3955f',
    500: '#796c1d',
    950: '#000000',
  },
}
SCSS
$custom: #796c1d;
$custom-light: #a3955f;
$custom-dark: #000000;
JSON
{
  "hex": "#796c1d",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 29
  },
  "hsl": {
    "h": 51.522,
    "s": 61.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.52846,
    "c": 0.0974,
    "h": 99.6
  },
  "luminance": 0.14879
}

Semantic roles & 50–950 ramp

primary
#796C1D
secondary
#4554AD
accent
#5AE443
background
#FAF9F5
surface
#F4F1EA
border
#CECBC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #796C1D

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

Preview Lab → · Contrast checker → · Palette generator →

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