#796C1F#796C1F

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

Color values

HEX#796C1F
RGBrgb(121, 108, 31)
HSLhsl(51, 59%, 30%)
HSVhsv(51, 74%, 47%)
CMYKcmyk(0%, 10.7%, 74.4%, 52.5%)
CIE-LABlab(45.48, -4.16, 42.66)
CIE-LCHlch(45.48, 42.86, 95.57°)
OKLaboklab(52.86% -0.0157 0.0947)
OKLCHoklch(52.86% 0.096 99.4)
XYZxyz(13.4957, 14.8896, 3.4592)
Luminance0.1489 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796C1F #1F2C79
analogous
#793F1F #796C1F #59791F
triadic
#796C1F #1F796C #6C1F79
tetradic
#796C1F #1F793F #1F2C79 #791F59
square
#796C1F #1F793F #1F2C79 #791F59
split-complementary
#796C1F #1F5979 #3F1F79
monochromatic
#181606 #484113 #796C1F #AA972B #CFBB43

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##796C1F#FFFFFF#000000##FFFFFF
##796C1F1.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)
#776913
Deuteranopia (green-blind)
#7A6E24
Tritanopia (blue-blind)
#83645D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #796c1f;
/* rgb */ color: rgb(121, 108, 31);
/* oklch */ color: oklch(52.9% 0.096 99.4);
Tailwind
colors: {
  custom: {
    50: '#a39560',
    500: '#796c1f',
    950: '#000000',
  },
}
SCSS
$custom: #796c1f;
$custom-light: #a39560;
$custom-dark: #000000;
JSON
{
  "hex": "#796c1f",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 31
  },
  "hsl": {
    "h": 51.333,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.52862,
    "c": 0.09602,
    "h": 99.4
  },
  "luminance": 0.14889
}

Semantic roles & 50–950 ramp

primary
#796C1F
secondary
#4756AC
accent
#5CE245
background
#FAF9F5
surface
#F4F1EA
border
#CECBC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #796C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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