#5A7516#5A7516

#5A7516 is a mid, vivid yellow-green. Relative luminance 0.150; OKLCH L 52.3% C 0.121 H 124.9°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#5A7516
RGBrgb(90, 117, 22)
HSLhsl(77, 68%, 27%)
HSVhsv(77, 81%, 46%)
CMYKcmyk(23.1%, 0%, 81.2%, 54.1%)
CIE-LABlab(45.57, -23.80, 45.22)
CIE-LCHlch(45.57, 51.09, 117.76°)
OKLaboklab(52.27% -0.0693 0.0995)
OKLCHoklch(52.27% 0.121 124.9)
XYZxyz(10.7227, 14.9540, 3.0804)
Luminance0.1495 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7516 #311675
analogous
#756116 #5A7516 #2A7516
triadic
#5A7516 #165A75 #75165A
tetradic
#5A7516 #167561 #311675 #75162A
square
#5A7516 #167561 #311675 #75162A
split-complementary
#5A7516 #162A75 #611675
monochromatic
#141A05 #32410C #5A7516 #82A920 #A7D82E

Accessibility & contrast

On white

5.26
#5A7516 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#5A7516 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7516
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7516#FFFFFF#000000##FFFFFF
##5A75161.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D00
Deuteranopia (green-blind)
#786C20
Tritanopia (blue-blind)
#5F6F63
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5a7516;
/* rgb */ color: rgb(90, 117, 22);
/* oklch */ color: oklch(52.3% 0.121 124.9);
Tailwind
colors: {
  custom: {
    50: '#8c9c5c',
    500: '#5a7516',
    950: '#000000',
  },
}
SCSS
$custom: #5a7516;
$custom-light: #8c9c5c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7516",
  "rgb": {
    "r": 90,
    "g": 117,
    "b": 22
  },
  "hsl": {
    "h": 77.053,
    "s": 68.345,
    "l": 27.255
  },
  "oklch": {
    "l": 0.52272,
    "c": 0.12127,
    "h": 124.9
  },
  "luminance": 0.14954
}

Semantic roles & 50–950 ramp

primary
#5A7516
secondary
#5C3CAB
accent
#3DEB6E
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5A7516

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

Preview Lab → · Contrast checker → · Palette generator →

#5A7516 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva