#797520#797520

#797520 is a mid, moderate yellow. Relative luminance 0.169; OKLCH L 55.0% C 0.104 H 106.7°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#797520
RGBrgb(121, 117, 32)
HSLhsl(57, 58%, 30%)
HSVhsv(57, 74%, 47%)
CMYKcmyk(0%, 3.3%, 73.6%, 52.5%)
CIE-LABlab(48.12, -9.18, 44.84)
CIE-LCHlch(48.12, 45.77, 101.57°)
OKLaboklab(54.96% -0.0298 0.0995)
OKLCHoklch(54.96% 0.104 106.7)
XYZxyz(14.5077, 16.8923, 3.8626)
Luminance0.1689 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797520 #202479
analogous
#794820 #797520 #517920
triadic
#797520 #207975 #752079
tetradic
#797520 #207948 #202479 #792051
square
#797520 #207948 #202479 #792051
split-complementary
#797520 #205179 #482079
monochromatic
#181706 #494613 #797520 #A9A42D #CEC845

Accessibility & contrast

On white

4.80
#797520 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#797520 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797520
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797520#FFFFFF#000000##FFFFFF
##7975201.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7012
Deuteranopia (green-blind)
#817426
Tritanopia (blue-blind)
#826D64
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #797520;
/* rgb */ color: rgb(121, 117, 32);
/* oklch */ color: oklch(55.0% 0.104 106.7);
Tailwind
colors: {
  custom: {
    50: '#a39c62',
    500: '#797520',
    950: '#000000',
  },
}
SCSS
$custom: #797520;
$custom-light: #a39c62;
$custom-dark: #000000;
JSON
{
  "hex": "#797520",
  "rgb": {
    "r": 121,
    "g": 117,
    "b": 32
  },
  "hsl": {
    "h": 57.303,
    "s": 58.17,
    "l": 30
  },
  "oklch": {
    "l": 0.54964,
    "c": 0.1039,
    "h": 106.7
  },
  "luminance": 0.16892
}

Semantic roles & 50–950 ramp

primary
#797520
secondary
#494DAC
accent
#4DE146
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E05
muted
#7F7E7A

Preview Lab

Preview with #797520

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

Preview Lab → · Contrast checker → · Palette generator →

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