#5A7D1B#5A7D1B

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

Color values

HEX#5A7D1B
RGBrgb(90, 125, 27)
HSLhsl(81, 64%, 30%)
HSVhsv(81, 78%, 49%)
CMYKcmyk(28%, 0%, 78.4%, 51%)
CIE-LABlab(48.16, -27.48, 45.93)
CIE-LCHlch(48.16, 53.53, 120.89°)
OKLaboklab(54.38% -0.079 0.1019)
OKLCHoklch(54.38% 0.129 127.8)
XYZxyz(11.7479, 16.9198, 3.6836)
Luminance0.1692 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7D1B #3E1B7D
analogous
#7D6F1B #5A7D1B #297D1B
triadic
#5A7D1B #1B5A7D #7D1B5A
tetradic
#5A7D1B #1B7D6F #3E1B7D #7D1B29
square
#5A7D1B #1B7D6F #3E1B7D #7D1B29
split-complementary
#5A7D1B #1B297D #6F1B7D
monochromatic
#121905 #364B10 #5A7D1B #7EAF26 #9FD53D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A7D1B#FFFFFF#000000##FFFFFF
##5A7D1B1.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)
#847404
Deuteranopia (green-blind)
#7F7225
Tritanopia (blue-blind)
#5D776B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5a7d1b;
/* rgb */ color: rgb(90, 125, 27);
/* oklch */ color: oklch(54.4% 0.129 127.8);
Tailwind
colors: {
  custom: {
    50: '#8ca360',
    500: '#5a7d1b',
    950: '#000000',
  },
}
SCSS
$custom: #5a7d1b;
$custom-light: #8ca360;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7d1b",
  "rgb": {
    "r": 90,
    "g": 125,
    "b": 27
  },
  "hsl": {
    "h": 81.429,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.5438,
    "c": 0.1289,
    "h": 127.8
  },
  "luminance": 0.1692
}

Semantic roles & 50–950 ramp

primary
#5A7D1B
secondary
#6A43B1
accent
#40E77C
background
#F8FAF5
surface
#F0F3EA
border
#CBCDC6
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #5A7D1B

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

Preview Lab → · Contrast checker → · Palette generator →

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