#5A7D17#5A7D17

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

Color values

HEX#5A7D17
RGBrgb(90, 125, 23)
HSLhsl(81, 69%, 29%)
HSVhsv(81, 82%, 49%)
CMYKcmyk(28%, 0%, 81.6%, 51%)
CIE-LABlab(48.14, -27.69, 47.26)
CIE-LCHlch(48.14, 54.77, 120.37°)
OKLaboklab(54.36% -0.0798 0.104)
OKLCHoklch(54.36% 0.131 127.5)
XYZxyz(11.7048, 16.9025, 3.4563)
Luminance0.1690 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7D17 #3A177D
analogous
#7D6D17 #5A7D17 #277D17
triadic
#5A7D17 #175A7D #7D175A
tetradic
#5A7D17 #177D6D #3A177D #7D1727
square
#5A7D17 #177D6D #3A177D #7D1727
split-complementary
#5A7D17 #17277D #6D177D
monochromatic
#131A05 #35490D #5A7D17 #7FB121 #A1DA35

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A7D17#FFFFFF#000000##FFFFFF
##5A7D171.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)
#7F7222
Tritanopia (blue-blind)
#5E776A
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5a7d17;
/* rgb */ color: rgb(90, 125, 23);
/* oklch */ color: oklch(54.4% 0.131 127.5);
Tailwind
colors: {
  custom: {
    50: '#8ca35e',
    500: '#5a7d17',
    950: '#000000',
  },
}
SCSS
$custom: #5a7d17;
$custom-light: #8ca35e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7d17",
  "rgb": {
    "r": 90,
    "g": 125,
    "b": 23
  },
  "hsl": {
    "h": 80.588,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.54355,
    "c": 0.13109,
    "h": 127.5
  },
  "luminance": 0.16903
}

Semantic roles & 50–950 ramp

primary
#5A7D17
secondary
#663EB2
accent
#3CEC78
background
#F8FAF5
surface
#F0F3E9
border
#CBCDC5
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #5A7D17

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

Preview Lab → · Contrast checker → · Palette generator →

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