#796B24#796B24

#796B24 is a mid, moderate yellow. Relative luminance 0.147; OKLCH L 52.7% C 0.091 H 98.0°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#796B24
RGBrgb(121, 107, 36)
HSLhsl(50, 54%, 31%)
HSVhsv(50, 70%, 47%)
CMYKcmyk(0%, 11.6%, 70.2%, 52.5%)
CIE-LABlab(45.23, -3.30, 40.22)
CIE-LCHlch(45.23, 40.36, 94.69°)
OKLaboklab(52.68% -0.0127 0.0905)
OKLCHoklch(52.68% 0.091 98)
XYZxyz(13.4619, 14.7084, 3.7986)
Luminance0.1471 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796B24 #243279
analogous
#794024 #796B24 #5C7924
triadic
#796B24 #24796B #6B2479
tetradic
#796B24 #247940 #243279 #79245C
square
#796B24 #247940 #243279 #79245C
split-complementary
#796B24 #245C79 #402479
monochromatic
#1B1808 #4A4116 #796B24 #A89532 #CAB64D

Accessibility & contrast

On white

5.33
#796B24 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#796B24 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796B24
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796B24#FFFFFF#000000##FFFFFF
##796B241.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#76681B
Deuteranopia (green-blind)
#796D28
Tritanopia (blue-blind)
#83635C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #796b24;
/* rgb */ color: rgb(121, 107, 36);
/* oklch */ color: oklch(52.7% 0.091 98.0);
Tailwind
colors: {
  custom: {
    50: '#a29563',
    500: '#796b24',
    950: '#000000',
  },
}
SCSS
$custom: #796b24;
$custom-light: #a29563;
$custom-dark: #000000;
JSON
{
  "hex": "#796b24",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 36
  },
  "hsl": {
    "h": 50.118,
    "s": 54.14,
    "l": 30.784
  },
  "oklch": {
    "l": 0.52676,
    "c": 0.0914,
    "h": 98
  },
  "luminance": 0.14708
}

Semantic roles & 50–950 ramp

primary
#796B24
secondary
#4D5DAC
accent
#63DE4A
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D05
muted
#7F7E7A

Preview Lab

Preview with #796B24

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

Preview Lab → · Contrast checker → · Palette generator →

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