#5A7D16#5A7D16

#5A7D16 is a mid, vivid yellow-green. Relative luminance 0.169; OKLCH L 54.4% C 0.132 H 127.5°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#5A7D16
RGBrgb(90, 125, 22)
HSLhsl(80, 70%, 29%)
HSVhsv(80, 82%, 49%)
CMYKcmyk(28%, 0%, 82.4%, 51%)
CIE-LABlab(48.13, -27.74, 47.56)
CIE-LCHlch(48.13, 55.06, 120.25°)
OKLaboklab(54.35% -0.08 0.1045)
OKLCHoklch(54.35% 0.132 127.5)
XYZxyz(11.6949, 16.8986, 3.4045)
Luminance0.1690 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7D16 #39167D
analogous
#7D6D16 #5A7D16 #277D16
triadic
#5A7D16 #165A7D #7D165A
tetradic
#5A7D16 #167D6D #39167D #7D1627
square
#5A7D16 #167D6D #39167D #7D1627
split-complementary
#5A7D16 #16277D #6D167D
monochromatic
#131A05 #35490D #5A7D16 #7FB11F #A2DB32

Accessibility & contrast

On white

4.79
#5A7D16 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#5A7D16 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7D16
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7D16#FFFFFF#000000##FFFFFF
##5A7D161.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#7F7221
Tritanopia (blue-blind)
#5E776A
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5a7d16;
/* rgb */ color: rgb(90, 125, 22);
/* oklch */ color: oklch(54.4% 0.132 127.5);
Tailwind
colors: {
  custom: {
    50: '#8ca35d',
    500: '#5a7d16',
    950: '#000000',
  },
}
SCSS
$custom: #5a7d16;
$custom-light: #8ca35d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7d16",
  "rgb": {
    "r": 90,
    "g": 125,
    "b": 22
  },
  "hsl": {
    "h": 80.388,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.5435,
    "c": 0.1316,
    "h": 127.5
  },
  "luminance": 0.16899
}

Semantic roles & 50–950 ramp

primary
#5A7D16
secondary
#653DB2
accent
#3BED77
background
#F8FAF5
surface
#F0F3E9
border
#CBCDC5
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #5A7D16

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

Preview Lab → · Contrast checker → · Palette generator →

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