#797022#797022

#797022 is a mid, moderate yellow. Relative luminance 0.158; OKLCH L 53.8% C 0.097 H 102.7°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#797022
RGBrgb(121, 112, 34)
HSLhsl(54, 56%, 30%)
HSVhsv(54, 72%, 47%)
CMYKcmyk(0%, 7.4%, 71.9%, 52.5%)
CIE-LABlab(46.67, -6.27, 42.57)
CIE-LCHlch(46.67, 43.03, 98.38°)
OKLaboklab(53.81% -0.0213 0.0951)
OKLCHoklch(53.81% 0.097 102.7)
XYZxyz(13.9687, 15.7694, 3.8211)
Luminance0.1577 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797022 #222B79
analogous
#794422 #797022 #567922
triadic
#797022 #227970 #702279
tetradic
#797022 #227944 #222B79 #792256
square
#797022 #227944 #222B79 #792256
split-complementary
#797022 #225679 #442279
monochromatic
#191807 #494415 #797022 #A99C2F #CCBE49

Accessibility & contrast

On white

5.06
#797022 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#797022 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797022
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797022#FFFFFF#000000##FFFFFF
##7970221.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C16
Deuteranopia (green-blind)
#7D7027
Tritanopia (blue-blind)
#826860
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #797022;
/* rgb */ color: rgb(121, 112, 34);
/* oklch */ color: oklch(53.8% 0.097 102.7);
Tailwind
colors: {
  custom: {
    50: '#a39862',
    500: '#797022',
    950: '#000000',
  },
}
SCSS
$custom: #797022;
$custom-light: #a39862;
$custom-dark: #000000;
JSON
{
  "hex": "#797022",
  "rgb": {
    "r": 121,
    "g": 112,
    "b": 34
  },
  "hsl": {
    "h": 53.793,
    "s": 56.129,
    "l": 30.392
  },
  "oklch": {
    "l": 0.53812,
    "c": 0.09749,
    "h": 102.7
  },
  "luminance": 0.15769
}

Semantic roles & 50–950 ramp

primary
#797022
secondary
#4B55AC
accent
#58DF48
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0D05
muted
#7F7E7A

Preview Lab

Preview with #797022

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

Preview Lab → · Contrast checker → · Palette generator →

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