#796E22#796E22

#796E22 is a mid, moderate yellow. Relative luminance 0.153; OKLCH L 53.3% C 0.096 H 100.9°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#796E22
RGBrgb(121, 110, 34)
HSLhsl(52, 56%, 30%)
HSVhsv(52, 72%, 47%)
CMYKcmyk(0%, 9.1%, 71.9%, 52.5%)
CIE-LABlab(46.09, -5.14, 41.99)
CIE-LCHlch(46.09, 42.30, 96.97°)
OKLaboklab(53.35% -0.0181 0.0939)
OKLCHoklch(53.35% 0.096 100.9)
XYZxyz(13.7504, 15.3329, 3.7483)
Luminance0.1533 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796E22 #222D79
analogous
#794222 #796E22 #587922
triadic
#796E22 #22796E #6E2279
tetradic
#796E22 #227942 #222D79 #792258
square
#796E22 #227942 #222D79 #792258
split-complementary
#796E22 #225879 #422279
monochromatic
#191707 #494315 #796E22 #A9992F #CCBB49

Accessibility & contrast

On white

5.16
#796E22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#796E22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796E22
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796E22#FFFFFF#000000##FFFFFF
##796E221.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796B17
Deuteranopia (green-blind)
#7C6F27
Tritanopia (blue-blind)
#83665F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #796e22;
/* rgb */ color: rgb(121, 110, 34);
/* oklch */ color: oklch(53.3% 0.096 100.9);
Tailwind
colors: {
  custom: {
    50: '#a39762',
    500: '#796e22',
    950: '#000000',
  },
}
SCSS
$custom: #796e22;
$custom-light: #a39762;
$custom-dark: #000000;
JSON
{
  "hex": "#796e22",
  "rgb": {
    "r": 121,
    "g": 110,
    "b": 34
  },
  "hsl": {
    "h": 52.414,
    "s": 56.129,
    "l": 30.392
  },
  "oklch": {
    "l": 0.53348,
    "c": 0.09561,
    "h": 100.9
  },
  "luminance": 0.15332
}

Semantic roles & 50–950 ramp

primary
#796E22
secondary
#4B57AC
accent
#5BDF48
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0D05
muted
#7F7E7A

Preview Lab

Preview with #796E22

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

Preview Lab → · Contrast checker → · Palette generator →

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