#796A1B#796A1B

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

Color values

HEX#796A1B
RGBrgb(121, 106, 27)
HSLhsl(50, 64%, 29%)
HSVhsv(50, 78%, 47%)
CMYKcmyk(0%, 12.4%, 77.7%, 52.5%)
CIE-LABlab(44.88, -3.22, 43.70)
CIE-LCHlch(44.88, 43.82, 94.21°)
OKLaboklab(52.37% -0.0135 0.0961)
OKLCHoklch(52.37% 0.097 98)
XYZxyz(13.2377, 14.4528, 3.1291)
Luminance0.1445 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796A1B #1B2A79
analogous
#793B1B #796A1B #59791B
triadic
#796A1B #1B796A #6A1B79
tetradic
#796A1B #1B793B #1B2A79 #791B59
square
#796A1B #1B793B #1B2A79 #791B59
split-complementary
#796A1B #1B5979 #3B1B79
monochromatic
#191606 #473E10 #796A1B #AB9626 #D3BB3B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##796A1B#FFFFFF#000000##FFFFFF
##796A1B1.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)
#75670D
Deuteranopia (green-blind)
#796C20
Tritanopia (blue-blind)
#83615B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #796a1b;
/* rgb */ color: rgb(121, 106, 27);
/* oklch */ color: oklch(52.4% 0.097 98.0);
Tailwind
colors: {
  custom: {
    50: '#a3945e',
    500: '#796a1b',
    950: '#000000',
  },
}
SCSS
$custom: #796a1b;
$custom-light: #a3945e;
$custom-dark: #000000;
JSON
{
  "hex": "#796a1b",
  "rgb": {
    "r": 121,
    "g": 106,
    "b": 27
  },
  "hsl": {
    "h": 50.426,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52372,
    "c": 0.09704,
    "h": 98
  },
  "luminance": 0.14452
}

Semantic roles & 50–950 ramp

primary
#796A1B
secondary
#4354AD
accent
#5CE741
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D05
muted
#7F7E79

Preview Lab

Preview with #796A1B

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

Preview Lab → · Contrast checker → · Palette generator →

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