#796C1C#796C1C

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

Color values

HEX#796C1C
RGBrgb(121, 108, 28)
HSLhsl(52, 62%, 29%)
HSVhsv(52, 77%, 47%)
CMYKcmyk(0%, 10.7%, 76.9%, 52.5%)
CIE-LABlab(45.46, -4.32, 43.86)
CIE-LCHlch(45.46, 44.07, 95.62°)
OKLaboklab(52.84% -0.0165 0.0967)
OKLCHoklch(52.84% 0.098 99.7)
XYZxyz(13.4580, 14.8746, 3.2606)
Luminance0.1487 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796C1C #1C2979
analogous
#793E1C #796C1C #58791C
triadic
#796C1C #1C796C #6C1C79
tetradic
#796C1C #1C793E #1C2979 #791C58
square
#796C1C #1C793E #1C2979 #791C58
split-complementary
#796C1C #1C5879 #3E1C79
monochromatic
#191606 #474010 #796C1C #AB9828 #D2BD3D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##796C1C#FFFFFF#000000##FFFFFF
##796C1C1.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)
#77690E
Deuteranopia (green-blind)
#7B6E21
Tritanopia (blue-blind)
#83645C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #796c1c;
/* rgb */ color: rgb(121, 108, 28);
/* oklch */ color: oklch(52.8% 0.098 99.7);
Tailwind
colors: {
  custom: {
    50: '#a3955f',
    500: '#796c1c',
    950: '#000000',
  },
}
SCSS
$custom: #796c1c;
$custom-light: #a3955f;
$custom-dark: #000000;
JSON
{
  "hex": "#796c1c",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 28
  },
  "hsl": {
    "h": 51.613,
    "s": 62.416,
    "l": 29.216
  },
  "oklch": {
    "l": 0.52839,
    "c": 0.09806,
    "h": 99.7
  },
  "luminance": 0.14874
}

Semantic roles & 50–950 ramp

primary
#796C1C
secondary
#4453AD
accent
#59E542
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D05
muted
#7F7E79

Preview Lab

Preview with #796C1C

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

Preview Lab → · Contrast checker → · Palette generator →

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