#797422#797422

#797422 is a mid, moderate yellow. Relative luminance 0.167; OKLCH L 54.7% C 0.101 H 105.8°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#797422
RGBrgb(121, 116, 34)
HSLhsl(57, 56%, 30%)
HSVhsv(57, 72%, 47%)
CMYKcmyk(0%, 4.1%, 71.9%, 52.5%)
CIE-LABlab(47.84, -8.52, 43.75)
CIE-LCHlch(47.84, 44.57, 101.02°)
OKLaboklab(54.75% -0.0277 0.0976)
OKLCHoklch(54.75% 0.101 105.8)
XYZxyz(14.4198, 16.6717, 3.9715)
Luminance0.1667 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797422 #222779
analogous
#794922 #797422 #527922
triadic
#797422 #227974 #742279
tetradic
#797422 #227949 #222779 #792252
square
#797422 #227949 #222779 #792252
split-complementary
#797422 #225279 #492279
monochromatic
#191807 #494615 #797422 #A9A22F #CCC449

Accessibility & contrast

On white

4.85
#797422 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#797422 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797422
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797422#FFFFFF#000000##FFFFFF
##7974221.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E7015
Deuteranopia (green-blind)
#807327
Tritanopia (blue-blind)
#826C64
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #797422;
/* rgb */ color: rgb(121, 116, 34);
/* oklch */ color: oklch(54.7% 0.101 105.8);
Tailwind
colors: {
  custom: {
    50: '#a39b63',
    500: '#797422',
    950: '#000000',
  },
}
SCSS
$custom: #797422;
$custom-light: #a39b63;
$custom-dark: #000000;
JSON
{
  "hex": "#797422",
  "rgb": {
    "r": 121,
    "g": 116,
    "b": 34
  },
  "hsl": {
    "h": 56.552,
    "s": 56.129,
    "l": 30.392
  },
  "oklch": {
    "l": 0.54745,
    "c": 0.10145,
    "h": 105.8
  },
  "luminance": 0.16671
}

Semantic roles & 50–950 ramp

primary
#797422
secondary
#4B50AC
accent
#51DF48
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E05
muted
#7F7E7A

Preview Lab

Preview with #797422

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

Preview Lab → · Contrast checker → · Palette generator →

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