#796C2E#796C2E

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

Color values

HEX#796C2E
RGBrgb(121, 108, 46)
HSLhsl(50, 45%, 33%)
HSVhsv(50, 62%, 47%)
CMYKcmyk(0%, 10.7%, 62%, 52.5%)
CIE-LABlab(45.62, -3.17, 35.81)
CIE-LCHlch(45.62, 35.95, 95.06°)
OKLaboklab(53.01% -0.011 0.0828)
OKLCHoklch(53.01% 0.083 97.6)
XYZxyz(13.7414, 14.9879, 4.7534)
Luminance0.1499 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796C2E #2E3B79
analogous
#79462E #796C2E #60792E
triadic
#796C2E #2E796C #6C2E79
tetradic
#796C2E #2E7946 #2E3B79 #792E60
square
#796C2E #2E7946 #2E3B79 #792E60
split-complementary
#796C2E #2E6079 #462E79
monochromatic
#201D0C #4D441D #796C2E #A5943F #C2B15F

Accessibility & contrast

On white

5.25
#796C2E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#796C2E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796C2E
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796C2E#FFFFFF#000000##FFFFFF
##796C2E1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766928
Deuteranopia (green-blind)
#7A6E31
Tritanopia (blue-blind)
#82645E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #796c2e;
/* rgb */ color: rgb(121, 108, 46);
/* oklch */ color: oklch(53.0% 0.083 97.6);
Tailwind
colors: {
  custom: {
    50: '#a29569',
    500: '#796c2e',
    950: '#000000',
  },
}
SCSS
$custom: #796c2e;
$custom-light: #a29569;
$custom-dark: #000000;
JSON
{
  "hex": "#796c2e",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 46
  },
  "hsl": {
    "h": 49.6,
    "s": 44.91,
    "l": 32.745
  },
  "oklch": {
    "l": 0.53012,
    "c": 0.08349,
    "h": 97.6
  },
  "luminance": 0.14987
}

Semantic roles & 50–950 ramp

primary
#796C2E
secondary
#5A68A9
accent
#6AD553
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #796C2E

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

Preview Lab → · Contrast checker → · Palette generator →

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