#797120#797120

#797120 is a mid, moderate yellow. Relative luminance 0.160; OKLCH L 54.0% C 0.100 H 103.6°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#797120
RGBrgb(121, 113, 32)
HSLhsl(55, 58%, 30%)
HSVhsv(55, 74%, 47%)
CMYKcmyk(0%, 6.6%, 73.6%, 52.5%)
CIE-LABlab(46.95, -6.95, 43.69)
CIE-LCHlch(46.95, 44.24, 99.03°)
OKLaboklab(54.03% -0.0235 0.0971)
OKLCHoklch(54.03% 0.1 103.6)
XYZxyz(14.0516, 15.9801, 3.7105)
Luminance0.1598 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797120 #202879
analogous
#794520 #797120 #547920
triadic
#797120 #207971 #712079
tetradic
#797120 #207945 #202879 #792054
square
#797120 #207945 #202879 #792054
split-complementary
#797120 #205479 #452079
monochromatic
#181706 #494413 #797120 #A99E2D #CEC245

Accessibility & contrast

On white

5.01
#797120 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#797120 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797120
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797120#FFFFFF#000000##FFFFFF
##7971201.005.014.205.01
#FFFFFF5.011.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D13
Deuteranopia (green-blind)
#7E7125
Tritanopia (blue-blind)
#826961
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #797120;
/* rgb */ color: rgb(121, 113, 32);
/* oklch */ color: oklch(54.0% 0.100 103.6);
Tailwind
colors: {
  custom: {
    50: '#a39961',
    500: '#797120',
    950: '#000000',
  },
}
SCSS
$custom: #797120;
$custom-light: #a39961;
$custom-dark: #000000;
JSON
{
  "hex": "#797120",
  "rgb": {
    "r": 121,
    "g": 113,
    "b": 32
  },
  "hsl": {
    "h": 54.607,
    "s": 58.17,
    "l": 30
  },
  "oklch": {
    "l": 0.54028,
    "c": 0.09989,
    "h": 103.6
  },
  "luminance": 0.15979
}

Semantic roles & 50–950 ramp

primary
#797120
secondary
#4952AC
accent
#54E146
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #797120

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

Preview Lab → · Contrast checker → · Palette generator →

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