#796A22#796A22

#796A22 is a mid, moderate yellow. Relative luminance 0.145; OKLCH L 52.4% C 0.092 H 97.2°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#796A22
RGBrgb(121, 106, 34)
HSLhsl(50, 56%, 30%)
HSVhsv(50, 72%, 47%)
CMYKcmyk(0%, 12.4%, 71.9%, 52.5%)
CIE-LABlab(44.93, -2.85, 40.81)
CIE-LCHlch(44.93, 40.91, 93.99°)
OKLaboklab(52.43% -0.0116 0.0914)
OKLCHoklch(52.43% 0.092 97.2)
XYZxyz(13.3286, 14.4892, 3.6077)
Luminance0.1449 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796A22 #223179
analogous
#793E22 #796A22 #5C7922
triadic
#796A22 #22796A #6A2279
tetradic
#796A22 #22793E #223179 #79225C
square
#796A22 #22793E #223179 #79225C
split-complementary
#796A22 #225C79 #3E2279
monochromatic
#191607 #494015 #796A22 #A9942F #CCB549

Accessibility & contrast

On white

5.39
#796A22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#796A22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796A22
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796A22#FFFFFF#000000##FFFFFF
##796A221.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756718
Deuteranopia (green-blind)
#796C26
Tritanopia (blue-blind)
#83625B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #796a22;
/* rgb */ color: rgb(121, 106, 34);
/* oklch */ color: oklch(52.4% 0.092 97.2);
Tailwind
colors: {
  custom: {
    50: '#a39462',
    500: '#796a22',
    950: '#000000',
  },
}
SCSS
$custom: #796a22;
$custom-light: #a39462;
$custom-dark: #000000;
JSON
{
  "hex": "#796a22",
  "rgb": {
    "r": 121,
    "g": 106,
    "b": 34
  },
  "hsl": {
    "h": 49.655,
    "s": 56.129,
    "l": 30.392
  },
  "oklch": {
    "l": 0.52428,
    "c": 0.09212,
    "h": 97.2
  },
  "luminance": 0.14489
}

Semantic roles & 50–950 ramp

primary
#796A22
secondary
#4B5CAC
accent
#62DF48
background
#FAF9F5
surface
#F4F1EA
border
#CECBC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #796A22

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

Preview Lab → · Contrast checker → · Palette generator →

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