#796B40#796B40

#796B40 is a mid, moderate yellow. Relative luminance 0.150; OKLCH L 53.0% C 0.063 H 92.0°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#796B40
RGBrgb(121, 107, 64)
HSLhsl(45, 31%, 36%)
HSVhsv(45, 47%, 47%)
CMYKcmyk(0%, 11.6%, 47.1%, 52.5%)
CIE-LABlab(45.57, -0.89, 26.05)
CIE-LCHlch(45.57, 26.07, 91.95°)
OKLaboklab(53.05% -0.0022 0.0631)
OKLCHoklch(53.05% 0.063 92)
XYZxyz(14.0687, 14.9511, 6.9943)
Luminance0.1495 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796B40 #404E79
analogous
#794F40 #796B40 #6B7940
triadic
#796B40 #40796B #6B4079
tetradic
#796B40 #40794F #404E79 #79406B
square
#796B40 #40794F #404E79 #79406B
split-complementary
#796B40 #406B79 #4F4079
monochromatic
#292416 #51482B #796B40 #A18E55 #B9AA7A

Accessibility & contrast

On white

5.26
#796B40 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#796B40 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796B40
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796B40#FFFFFF#000000##FFFFFF
##796B401.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#74693D
Deuteranopia (green-blind)
#776E42
Tritanopia (blue-blind)
#816560
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #796b40;
/* rgb */ color: rgb(121, 107, 64);
/* oklch */ color: oklch(53.0% 0.063 92.0);
Tailwind
colors: {
  custom: {
    50: '#a19575',
    500: '#796b40',
    950: '#000000',
  },
}
SCSS
$custom: #796b40;
$custom-light: #a19575;
$custom-dark: #000000;
JSON
{
  "hex": "#796b40",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 64
  },
  "hsl": {
    "h": 45.263,
    "s": 30.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.53049,
    "c": 0.06318,
    "h": 92
  },
  "luminance": 0.14951
}

Semantic roles & 50–950 ramp

primary
#796B40
secondary
#717EA4
accent
#7AC761
background
#FAF9F7
surface
#F3F1ED
border
#CDCBC8
text
#0F0D08
muted
#7F7E7B

Preview Lab

Preview with #796B40

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

Preview Lab → · Contrast checker → · Palette generator →

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