#5A7D1A#5A7D1A

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

Color values

HEX#5A7D1A
RGBrgb(90, 125, 26)
HSLhsl(81, 66%, 30%)
HSVhsv(81, 79%, 49%)
CMYKcmyk(28%, 0%, 79.2%, 51%)
CIE-LABlab(48.15, -27.54, 46.28)
CIE-LCHlch(48.15, 53.85, 120.76°)
OKLaboklab(54.37% -0.0792 0.1024)
OKLCHoklch(54.37% 0.129 127.7)
XYZxyz(11.7365, 16.9152, 3.6237)
Luminance0.1691 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7D1A #3D1A7D
analogous
#7D6F1A #5A7D1A #297D1A
triadic
#5A7D1A #1A5A7D #7D1A5A
tetradic
#5A7D1A #1A7D6F #3D1A7D #7D1A29
square
#5A7D1A #1A7D6F #3D1A7D #7D1A29
split-complementary
#5A7D1A #1A297D #6F1A7D
monochromatic
#121905 #364A0F #5A7D1A #7EB025 #9FD63B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A7D1A#FFFFFF#000000##FFFFFF
##5A7D1A1.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)
#847402
Deuteranopia (green-blind)
#7F7224
Tritanopia (blue-blind)
#5E776A
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5a7d1a;
/* rgb */ color: rgb(90, 125, 26);
/* oklch */ color: oklch(54.4% 0.129 127.7);
Tailwind
colors: {
  custom: {
    50: '#8ca35f',
    500: '#5a7d1a',
    950: '#000000',
  },
}
SCSS
$custom: #5a7d1a;
$custom-light: #8ca35f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7d1a",
  "rgb": {
    "r": 90,
    "g": 125,
    "b": 26
  },
  "hsl": {
    "h": 81.212,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.54374,
    "c": 0.12947,
    "h": 127.7
  },
  "luminance": 0.16915
}

Semantic roles & 50–950 ramp

primary
#5A7D1A
secondary
#6942B1
accent
#3FE97B
background
#F8FAF5
surface
#F0F3EA
border
#CBCDC6
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #5A7D1A

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

Preview Lab → · Contrast checker → · Palette generator →

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