#5A8D2F#5A8D2F

#5A8D2F is a mid, vivid yellow-green. Relative luminance 0.214; OKLCH L 58.7% C 0.137 H 133.4°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#5A8D2F
RGBrgb(90, 141, 47)
HSLhsl(93, 50%, 37%)
HSVhsv(93, 67%, 55%)
CMYKcmyk(36.2%, 0%, 66.7%, 44.7%)
CIE-LABlab(53.41, -33.55, 43.26)
CIE-LCHlch(53.41, 54.75, 127.80°)
OKLaboklab(58.71% -0.0938 0.0993)
OKLCHoklch(58.71% 0.137 133.4)
XYZxyz(14.2542, 21.4280, 6.0738)
Luminance0.2143 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8D2F #622F8D
analogous
#898D2F #5A8D2F #2F8D33
triadic
#5A8D2F #2F5A8D #8D2F5A
tetradic
#5A8D2F #2F898D #622F8D #8D332F
square
#5A8D2F #2F898D #622F8D #8D332F
split-complementary
#5A8D2F #332F8D #8D2F89
monochromatic
#1F3110 #3D5F20 #5A8D2F #77BB3E #97CD69

Accessibility & contrast

On white

3.97
#5A8D2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#5A8D2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8D2F
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8D2F#FFFFFF#000000##000000
##5A8D2F1.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#938223
Deuteranopia (green-blind)
#8C7E37
Tritanopia (blue-blind)
#5A877A
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5a8d2f;
/* rgb */ color: rgb(90, 141, 47);
/* oklch */ color: oklch(58.7% 0.137 133.4);
Tailwind
colors: {
  custom: {
    50: '#8cae6c',
    500: '#5a8d2f',
    950: '#000000',
  },
}
SCSS
$custom: #5a8d2f;
$custom-light: #8cae6c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8d2f",
  "rgb": {
    "r": 90,
    "g": 141,
    "b": 47
  },
  "hsl": {
    "h": 92.553,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.58706,
    "c": 0.13663,
    "h": 133.4
  },
  "luminance": 0.21429
}

Semantic roles & 50–950 ramp

primary
#5A8D2F
secondary
#8F64B4
accent
#4EDA9A
background
#F8FAF6
surface
#F0F4EC
border
#CBCEC7
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #5A8D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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