#796A1C#796A1C

#796A1C is a mid, moderate yellow. Relative luminance 0.145; OKLCH L 52.4% C 0.096 H 97.9°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#796A1C
RGBrgb(121, 106, 28)
HSLhsl(50, 62%, 29%)
HSVhsv(50, 77%, 47%)
CMYKcmyk(0%, 12.4%, 76.9%, 52.5%)
CIE-LABlab(44.88, -3.17, 43.31)
CIE-LCHlch(44.88, 43.42, 94.19°)
OKLaboklab(52.38% -0.0132 0.0955)
OKLCHoklch(52.38% 0.096 97.9)
XYZxyz(13.2495, 14.4575, 3.1911)
Luminance0.1446 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796A1C #1C2B79
analogous
#793C1C #796A1C #5A791C
triadic
#796A1C #1C796A #6A1C79
tetradic
#796A1C #1C793C #1C2B79 #791C5A
square
#796A1C #1C793C #1C2B79 #791C5A
split-complementary
#796A1C #1C5A79 #3C1C79
monochromatic
#191606 #473E10 #796A1C #AB9628 #D2BA3D

Accessibility & contrast

On white

5.40
#796A1C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#796A1C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796A1C
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796A1C#FFFFFF#000000##FFFFFF
##796A1C1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#75670E
Deuteranopia (green-blind)
#796C21
Tritanopia (blue-blind)
#83625B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #796a1c;
/* rgb */ color: rgb(121, 106, 28);
/* oklch */ color: oklch(52.4% 0.096 97.9);
Tailwind
colors: {
  custom: {
    50: '#a3945e',
    500: '#796a1c',
    950: '#000000',
  },
}
SCSS
$custom: #796a1c;
$custom-light: #a3945e;
$custom-dark: #000000;
JSON
{
  "hex": "#796a1c",
  "rgb": {
    "r": 121,
    "g": 106,
    "b": 28
  },
  "hsl": {
    "h": 50.323,
    "s": 62.416,
    "l": 29.216
  },
  "oklch": {
    "l": 0.52379,
    "c": 0.09639,
    "h": 97.9
  },
  "luminance": 0.14457
}

Semantic roles & 50–950 ramp

primary
#796A1C
secondary
#4455AD
accent
#5DE542
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D05
muted
#7F7E79

Preview Lab

Preview with #796A1C

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

Preview Lab → · Contrast checker → · Palette generator →

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