#796F24#796F24

#796F24 is a mid, moderate yellow. Relative luminance 0.156; OKLCH L 53.6% C 0.095 H 101.6°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#796F24
RGBrgb(121, 111, 36)
HSLhsl(53, 54%, 31%)
HSVhsv(53, 70%, 47%)
CMYKcmyk(0%, 8.3%, 70.2%, 52.5%)
CIE-LABlab(46.39, -5.58, 41.42)
CIE-LCHlch(46.39, 41.79, 97.68°)
OKLaboklab(53.6% -0.0192 0.093)
OKLCHoklch(53.6% 0.095 101.6)
XYZxyz(13.8886, 15.5618, 3.9409)
Luminance0.1556 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796F24 #242E79
analogous
#794424 #796F24 #587924
triadic
#796F24 #24796F #6F2479
tetradic
#796F24 #247944 #242E79 #792458
square
#796F24 #247944 #242E79 #792458
split-complementary
#796F24 #245879 #442479
monochromatic
#1B1808 #4A4416 #796F24 #A89A32 #CABB4D

Accessibility & contrast

On white

5.11
#796F24 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#796F24 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796F24
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796F24#FFFFFF#000000##FFFFFF
##796F241.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796C1A
Deuteranopia (green-blind)
#7C7028
Tritanopia (blue-blind)
#826760
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #796f24;
/* rgb */ color: rgb(121, 111, 36);
/* oklch */ color: oklch(53.6% 0.095 101.6);
Tailwind
colors: {
  custom: {
    50: '#a29863',
    500: '#796f24',
    950: '#000000',
  },
}
SCSS
$custom: #796f24;
$custom-light: #a29863;
$custom-dark: #000000;
JSON
{
  "hex": "#796f24",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 36
  },
  "hsl": {
    "h": 52.941,
    "s": 54.14,
    "l": 30.784
  },
  "oklch": {
    "l": 0.53597,
    "c": 0.095,
    "h": 101.6
  },
  "luminance": 0.15561
}

Semantic roles & 50–950 ramp

primary
#796F24
secondary
#4D58AC
accent
#5CDE4A
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0D05
muted
#7F7E7A

Preview Lab

Preview with #796F24

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

Preview Lab → · Contrast checker → · Palette generator →

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