#5A7A16#5A7A16

#5A7A16 is a mid, vivid yellow-green. Relative luminance 0.162; OKLCH L 53.6% C 0.128 H 126.6°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#5A7A16
RGBrgb(90, 122, 22)
HSLhsl(79, 69%, 28%)
HSVhsv(79, 82%, 48%)
CMYKcmyk(26.2%, 0%, 82%, 52.2%)
CIE-LABlab(47.17, -26.28, 46.69)
CIE-LCHlch(47.17, 53.58, 119.38°)
OKLaboklab(53.57% -0.0761 0.1026)
OKLCHoklch(53.57% 0.128 126.6)
XYZxyz(11.3209, 16.1504, 3.2798)
Luminance0.1615 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7A16 #36167A
analogous
#7A6816 #5A7A16 #287A16
triadic
#5A7A16 #165A7A #7A165A
tetradic
#5A7A16 #167A68 #36167A #7A1628
square
#5A7A16 #167A68 #36167A #7A1628
split-complementary
#5A7A16 #16287A #68167A
monochromatic
#131A05 #34460D #5A7A16 #80AE1F #A4DA31

Accessibility & contrast

On white

4.96
#5A7A16 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#5A7A16 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7A16
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7A16#FFFFFF#000000##FFFFFF
##5A7A161.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#7C6F21
Tritanopia (blue-blind)
#5E7468
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5a7a16;
/* rgb */ color: rgb(90, 122, 22);
/* oklch */ color: oklch(53.6% 0.128 126.6);
Tailwind
colors: {
  custom: {
    50: '#8ca05d',
    500: '#5a7a16',
    950: '#000000',
  },
}
SCSS
$custom: #5a7a16;
$custom-light: #8ca05d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7a16",
  "rgb": {
    "r": 90,
    "g": 122,
    "b": 22
  },
  "hsl": {
    "h": 79.2,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.53569,
    "c": 0.12773,
    "h": 126.6
  },
  "luminance": 0.16151
}

Semantic roles & 50–950 ramp

primary
#5A7A16
secondary
#613DAF
accent
#3CEC74
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5A7A16

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

Preview Lab → · Contrast checker → · Palette generator →

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