#797222#797222

#797222 is a mid, moderate yellow. Relative luminance 0.162; OKLCH L 54.3% C 0.099 H 104.3°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#797222
RGBrgb(121, 114, 34)
HSLhsl(55, 56%, 30%)
HSVhsv(55, 72%, 47%)
CMYKcmyk(0%, 5.8%, 71.9%, 52.5%)
CIE-LABlab(47.26, -7.40, 43.16)
CIE-LCHlch(47.26, 43.79, 99.72°)
OKLaboklab(54.28% -0.0245 0.0964)
OKLCHoklch(54.28% 0.099 104.3)
XYZxyz(14.1918, 16.2156, 3.8954)
Luminance0.1621 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797222 #222979
analogous
#794622 #797222 #557922
triadic
#797222 #227972 #722279
tetradic
#797222 #227946 #222979 #792255
square
#797222 #227946 #222979 #792255
split-complementary
#797222 #225579 #462279
monochromatic
#191807 #494515 #797222 #A99F2F #CCC149

Accessibility & contrast

On white

4.95
#797222 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#797222 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797222
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797222#FFFFFF#000000##FFFFFF
##7972221.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E16
Deuteranopia (green-blind)
#7F7227
Tritanopia (blue-blind)
#826A62
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #797222;
/* rgb */ color: rgb(121, 114, 34);
/* oklch */ color: oklch(54.3% 0.099 104.3);
Tailwind
colors: {
  custom: {
    50: '#a39a62',
    500: '#797222',
    950: '#000000',
  },
}
SCSS
$custom: #797222;
$custom-light: #a39a62;
$custom-dark: #000000;
JSON
{
  "hex": "#797222",
  "rgb": {
    "r": 121,
    "g": 114,
    "b": 34
  },
  "hsl": {
    "h": 55.172,
    "s": 56.129,
    "l": 30.392
  },
  "oklch": {
    "l": 0.54277,
    "c": 0.09943,
    "h": 104.3
  },
  "luminance": 0.16215
}

Semantic roles & 50–950 ramp

primary
#797222
secondary
#4B53AC
accent
#55DF48
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E05
muted
#7F7E7A

Preview Lab

Preview with #797222

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

Preview Lab → · Contrast checker → · Palette generator →

#797222 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva