#5A7D1D#5A7D1D

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

Color values

HEX#5A7D1D
RGBrgb(90, 125, 29)
HSLhsl(82, 62%, 30%)
HSVhsv(82, 77%, 49%)
CMYKcmyk(28%, 0%, 76.8%, 51%)
CIE-LABlab(48.17, -27.37, 45.23)
CIE-LCHlch(48.17, 52.86, 121.18°)
OKLaboklab(54.39% -0.0785 0.1007)
OKLCHoklch(54.39% 0.128 127.9)
XYZxyz(11.7718, 16.9293, 3.8096)
Luminance0.1693 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7D1D #401D7D
analogous
#7D701D #5A7D1D #2A7D1D
triadic
#5A7D1D #1D5A7D #7D1D5A
tetradic
#5A7D1D #1D7D70 #401D7D #7D1D2A
square
#5A7D1D #1D7D70 #401D7D #7D1D2A
split-complementary
#5A7D1D #1D2A7D #701D7D
monochromatic
#121A06 #364B11 #5A7D1D #7EAF29 #9ED341

Accessibility & contrast

On white

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

On black

4.39
#5A7D1D on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5A7D1D#FFFFFF#000000##FFFFFF
##5A7D1D1.004.794.394.79
#FFFFFF4.791.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847409
Deuteranopia (green-blind)
#7F7226
Tritanopia (blue-blind)
#5D776B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5a7d1d;
/* rgb */ color: rgb(90, 125, 29);
/* oklch */ color: oklch(54.4% 0.128 127.9);
Tailwind
colors: {
  custom: {
    50: '#8ca361',
    500: '#5a7d1d',
    950: '#000000',
  },
}
SCSS
$custom: #5a7d1d;
$custom-light: #8ca361;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7d1d",
  "rgb": {
    "r": 90,
    "g": 125,
    "b": 29
  },
  "hsl": {
    "h": 81.875,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.54394,
    "c": 0.1277,
    "h": 127.9
  },
  "luminance": 0.1693
}

Semantic roles & 50–950 ramp

primary
#5A7D1D
secondary
#6C45B1
accent
#42E57E
background
#F8FAF5
surface
#F0F3EA
border
#CBCDC6
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #5A7D1D

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

Preview Lab → · Contrast checker → · Palette generator →

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