#796D24#796D24

#796D24 is a mid, moderate yellow. Relative luminance 0.151; OKLCH L 53.1% C 0.093 H 99.8°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#796D24
RGBrgb(121, 109, 36)
HSLhsl(52, 54%, 31%)
HSVhsv(52, 70%, 47%)
CMYKcmyk(0%, 9.9%, 70.2%, 52.5%)
CIE-LABlab(45.81, -4.45, 40.82)
CIE-LCHlch(45.81, 41.06, 96.22°)
OKLaboklab(53.14% -0.0159 0.0918)
OKLCHoklch(53.14% 0.093 99.8)
XYZxyz(13.6728, 15.1302, 3.8689)
Luminance0.1513 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796D24 #243079
analogous
#794224 #796D24 #5A7924
triadic
#796D24 #24796D #6D2479
tetradic
#796D24 #247942 #243079 #79245A
square
#796D24 #247942 #243079 #79245A
split-complementary
#796D24 #245A79 #422479
monochromatic
#1B1808 #4A4316 #796D24 #A89732 #CAB84D

Accessibility & contrast

On white

5.22
#796D24 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#796D24 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796D24
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796D24#FFFFFF#000000##FFFFFF
##796D241.005.224.035.22
#FFFFFF5.221.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786A1A
Deuteranopia (green-blind)
#7B6E28
Tritanopia (blue-blind)
#83655E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #796d24;
/* rgb */ color: rgb(121, 109, 36);
/* oklch */ color: oklch(53.1% 0.093 99.8);
Tailwind
colors: {
  custom: {
    50: '#a29663',
    500: '#796d24',
    950: '#000000',
  },
}
SCSS
$custom: #796d24;
$custom-light: #a29663;
$custom-dark: #000000;
JSON
{
  "hex": "#796d24",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 36
  },
  "hsl": {
    "h": 51.529,
    "s": 54.14,
    "l": 30.784
  },
  "oklch": {
    "l": 0.53135,
    "c": 0.09316,
    "h": 99.8
  },
  "luminance": 0.1513
}

Semantic roles & 50–950 ramp

primary
#796D24
secondary
#4D5BAC
accent
#5FDE4A
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D05
muted
#7F7E7A

Preview Lab

Preview with #796D24

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

Preview Lab → · Contrast checker → · Palette generator →

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