#797020#797020

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

Color values

HEX#797020
RGBrgb(121, 112, 32)
HSLhsl(54, 58%, 30%)
HSVhsv(54, 74%, 47%)
CMYKcmyk(0%, 7.4%, 73.6%, 52.5%)
CIE-LABlab(46.66, -6.38, 43.40)
CIE-LCHlch(46.66, 43.87, 98.37°)
OKLaboklab(53.8% -0.0219 0.0965)
OKLCHoklch(53.8% 0.099 102.8)
XYZxyz(13.9406, 15.7582, 3.6735)
Luminance0.1576 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797020 #202979
analogous
#794420 #797020 #557920
triadic
#797020 #207970 #702079
tetradic
#797020 #207944 #202979 #792055
square
#797020 #207944 #202979 #792055
split-complementary
#797020 #205579 #442079
monochromatic
#181606 #494313 #797020 #A99D2D #CEC045

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797020#FFFFFF#000000##FFFFFF
##7970201.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)
#7B6C13
Deuteranopia (green-blind)
#7D7025
Tritanopia (blue-blind)
#826860
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #797020;
/* rgb */ color: rgb(121, 112, 32);
/* oklch */ color: oklch(53.8% 0.099 102.8);
Tailwind
colors: {
  custom: {
    50: '#a39861',
    500: '#797020',
    950: '#000000',
  },
}
SCSS
$custom: #797020;
$custom-light: #a39861;
$custom-dark: #000000;
JSON
{
  "hex": "#797020",
  "rgb": {
    "r": 121,
    "g": 112,
    "b": 32
  },
  "hsl": {
    "h": 53.933,
    "s": 58.17,
    "l": 30
  },
  "oklch": {
    "l": 0.53795,
    "c": 0.09894,
    "h": 102.8
  },
  "luminance": 0.15758
}

Semantic roles & 50–950 ramp

primary
#797020
secondary
#4953AC
accent
#56E146
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #797020

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

Preview Lab → · Contrast checker → · Palette generator →

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