#796B1C#796B1C

#796B1C is a mid, moderate yellow. Relative luminance 0.147; OKLCH L 52.6% C 0.097 H 98.8°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#796B1C
RGBrgb(121, 107, 28)
HSLhsl(51, 62%, 29%)
HSVhsv(51, 77%, 47%)
CMYKcmyk(0%, 11.6%, 76.9%, 52.5%)
CIE-LABlab(45.17, -3.74, 43.58)
CIE-LCHlch(45.17, 43.74, 94.91°)
OKLaboklab(52.61% -0.0149 0.0961)
OKLCHoklch(52.61% 0.097 98.8)
XYZxyz(13.3531, 14.6648, 3.2256)
Luminance0.1466 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796B1C #1C2A79
analogous
#793D1C #796B1C #59791C
triadic
#796B1C #1C796B #6B1C79
tetradic
#796B1C #1C793D #1C2A79 #791C59
square
#796B1C #1C793D #1C2A79 #791C59
split-complementary
#796B1C #1C5979 #3D1C79
monochromatic
#191606 #473F10 #796B1C #AB9728 #D2BC3D

Accessibility & contrast

On white

5.34
#796B1C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#796B1C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796B1C
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796B1C#FFFFFF#000000##FFFFFF
##796B1C1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#76680E
Deuteranopia (green-blind)
#7A6D21
Tritanopia (blue-blind)
#83635C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #796b1c;
/* rgb */ color: rgb(121, 107, 28);
/* oklch */ color: oklch(52.6% 0.097 98.8);
Tailwind
colors: {
  custom: {
    50: '#a3955e',
    500: '#796b1c',
    950: '#000000',
  },
}
SCSS
$custom: #796b1c;
$custom-light: #a3955e;
$custom-dark: #000000;
JSON
{
  "hex": "#796b1c",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 28
  },
  "hsl": {
    "h": 50.968,
    "s": 62.416,
    "l": 29.216
  },
  "oklch": {
    "l": 0.52608,
    "c": 0.09722,
    "h": 98.8
  },
  "luminance": 0.14664
}

Semantic roles & 50–950 ramp

primary
#796B1C
secondary
#4454AD
accent
#5BE542
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D05
muted
#7F7E79

Preview Lab

Preview with #796B1C

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

Preview Lab → · Contrast checker → · Palette generator →

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