#797221#797221

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

Color values

HEX#797221
RGBrgb(121, 114, 33)
HSLhsl(55, 57%, 30%)
HSVhsv(55, 73%, 47%)
CMYKcmyk(0%, 5.8%, 72.7%, 52.5%)
CIE-LABlab(47.25, -7.45, 43.57)
CIE-LCHlch(47.25, 44.21, 99.71°)
OKLaboklab(54.27% -0.0248 0.097)
OKLCHoklch(54.27% 0.1 104.3)
XYZxyz(14.1776, 16.2099, 3.8206)
Luminance0.1621 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797221 #212879
analogous
#794621 #797221 #547921
triadic
#797221 #217972 #722179
tetradic
#797221 #217946 #212879 #792154
square
#797221 #217946 #212879 #792154
split-complementary
#797221 #215479 #462179
monochromatic
#191707 #494514 #797221 #A99F2E #CDC247

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797221#FFFFFF#000000##FFFFFF
##7972211.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)
#7C6E14
Deuteranopia (green-blind)
#7F7226
Tritanopia (blue-blind)
#826A62
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #797221;
/* rgb */ color: rgb(121, 114, 33);
/* oklch */ color: oklch(54.3% 0.100 104.3);
Tailwind
colors: {
  custom: {
    50: '#a39a62',
    500: '#797221',
    950: '#000000',
  },
}
SCSS
$custom: #797221;
$custom-light: #a39a62;
$custom-dark: #000000;
JSON
{
  "hex": "#797221",
  "rgb": {
    "r": 121,
    "g": 114,
    "b": 33
  },
  "hsl": {
    "h": 55.227,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.54269,
    "c": 0.10016,
    "h": 104.3
  },
  "luminance": 0.16209
}

Semantic roles & 50–950 ramp

primary
#797221
secondary
#4A52AC
accent
#54E047
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E05
muted
#7F7E7A

Preview Lab

Preview with #797221

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

Preview Lab → · Contrast checker → · Palette generator →

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