#796F22#796F22

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

Color values

HEX#796F22
RGBrgb(121, 111, 34)
HSLhsl(53, 56%, 30%)
HSVhsv(53, 72%, 47%)
CMYKcmyk(0%, 8.3%, 71.9%, 52.5%)
CIE-LABlab(46.38, -5.70, 42.28)
CIE-LCHlch(46.38, 42.66, 97.68°)
OKLaboklab(53.58% -0.0197 0.0945)
OKLCHoklch(53.58% 0.097 101.8)
XYZxyz(13.8589, 15.5499, 3.7845)
Luminance0.1555 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796F22 #222C79
analogous
#794322 #796F22 #587922
triadic
#796F22 #22796F #6F2279
tetradic
#796F22 #227943 #222C79 #792258
square
#796F22 #227943 #222C79 #792258
split-complementary
#796F22 #225879 #432279
monochromatic
#191707 #494315 #796F22 #A99B2F #CCBD49

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##796F22#FFFFFF#000000##FFFFFF
##796F221.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)
#7A6B17
Deuteranopia (green-blind)
#7D7027
Tritanopia (blue-blind)
#82675F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #796f22;
/* rgb */ color: rgb(121, 111, 34);
/* oklch */ color: oklch(53.6% 0.097 101.8);
Tailwind
colors: {
  custom: {
    50: '#a39862',
    500: '#796f22',
    950: '#000000',
  },
}
SCSS
$custom: #796f22;
$custom-light: #a39862;
$custom-dark: #000000;
JSON
{
  "hex": "#796f22",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 34
  },
  "hsl": {
    "h": 53.103,
    "s": 56.129,
    "l": 30.392
  },
  "oklch": {
    "l": 0.5358,
    "c": 0.09654,
    "h": 101.8
  },
  "luminance": 0.15549
}

Semantic roles & 50–950 ramp

primary
#796F22
secondary
#4B56AC
accent
#5ADF48
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0D05
muted
#7F7E7A

Preview Lab

Preview with #796F22

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

Preview Lab → · Contrast checker → · Palette generator →

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