#796B22#796B22

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

Color values

HEX#796B22
RGBrgb(121, 107, 34)
HSLhsl(50, 56%, 30%)
HSVhsv(50, 72%, 47%)
CMYKcmyk(0%, 11.6%, 71.9%, 52.5%)
CIE-LABlab(45.22, -3.42, 41.10)
CIE-LCHlch(45.22, 41.25, 94.76°)
OKLaboklab(52.66% -0.0132 0.092)
OKLCHoklch(52.66% 0.093 98.2)
XYZxyz(13.4322, 14.6965, 3.6422)
Luminance0.1470 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796B22 #223079
analogous
#793F22 #796B22 #5B7922
triadic
#796B22 #22796B #6B2279
tetradic
#796B22 #22793F #223079 #79225B
square
#796B22 #22793F #223079 #79225B
split-complementary
#796B22 #225B79 #3F2279
monochromatic
#191707 #494115 #796B22 #A9952F #CCB749

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##796B22#FFFFFF#000000##FFFFFF
##796B221.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)
#766818
Deuteranopia (green-blind)
#7A6D26
Tritanopia (blue-blind)
#83635C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #796b22;
/* rgb */ color: rgb(121, 107, 34);
/* oklch */ color: oklch(52.7% 0.093 98.2);
Tailwind
colors: {
  custom: {
    50: '#a39562',
    500: '#796b22',
    950: '#000000',
  },
}
SCSS
$custom: #796b22;
$custom-light: #a39562;
$custom-dark: #000000;
JSON
{
  "hex": "#796b22",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 34
  },
  "hsl": {
    "h": 50.345,
    "s": 56.129,
    "l": 30.392
  },
  "oklch": {
    "l": 0.52657,
    "c": 0.09296,
    "h": 98.2
  },
  "luminance": 0.14696
}

Semantic roles & 50–950 ramp

primary
#796B22
secondary
#4B5BAC
accent
#61DF48
background
#FAF9F5
surface
#F4F1EA
border
#CECBC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #796B22

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

Preview Lab → · Contrast checker → · Palette generator →

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