#5A7B16#5A7B16

#5A7B16 is a mid, vivid yellow-green. Relative luminance 0.164; OKLCH L 53.8% C 0.129 H 126.9°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#5A7B16
RGBrgb(90, 123, 22)
HSLhsl(80, 70%, 28%)
HSVhsv(80, 82%, 48%)
CMYKcmyk(26.8%, 0%, 82.1%, 51.8%)
CIE-LABlab(47.49, -26.77, 46.98)
CIE-LCHlch(47.49, 54.07, 119.68°)
OKLaboklab(53.83% -0.0774 0.1032)
OKLCHoklch(53.83% 0.129 126.9)
XYZxyz(11.4443, 16.3973, 3.3209)
Luminance0.1640 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7B16 #37167B
analogous
#7B6916 #5A7B16 #277B16
triadic
#5A7B16 #165A7B #7B165A
tetradic
#5A7B16 #167B69 #37167B #7B1627
square
#5A7B16 #167B69 #37167B #7B1627
split-complementary
#5A7B16 #16277B #69167B
monochromatic
#131A05 #34470D #5A7B16 #80AF1F #A3DA31

Accessibility & contrast

On white

4.91
#5A7B16 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#5A7B16 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7B16
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7B16#FFFFFF#000000##FFFFFF
##5A7B161.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#7D7021
Tritanopia (blue-blind)
#5E7569
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5a7b16;
/* rgb */ color: rgb(90, 123, 22);
/* oklch */ color: oklch(53.8% 0.129 126.9);
Tailwind
colors: {
  custom: {
    50: '#8ca15d',
    500: '#5a7b16',
    950: '#000000',
  },
}
SCSS
$custom: #5a7b16;
$custom-light: #8ca15d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7b16",
  "rgb": {
    "r": 90,
    "g": 123,
    "b": 22
  },
  "hsl": {
    "h": 79.604,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.53829,
    "c": 0.12902,
    "h": 126.9
  },
  "luminance": 0.16398
}

Semantic roles & 50–950 ramp

primary
#5A7B16
secondary
#623DB0
accent
#3BEC75
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0F05
muted
#7D7E79

Preview Lab

Preview with #5A7B16

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

Preview Lab → · Contrast checker → · Palette generator →

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