#5A8A2D#5A8A2D

#5A8A2D is a mid, vivid yellow-green. Relative luminance 0.205; OKLCH L 57.9% C 0.134 H 132.6°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#5A8A2D
RGBrgb(90, 138, 45)
HSLhsl(91, 51%, 36%)
HSVhsv(91, 67%, 54%)
CMYKcmyk(34.8%, 0%, 67.4%, 45.9%)
CIE-LABlab(52.44, -32.35, 43.10)
CIE-LCHlch(52.44, 53.89, 126.89°)
OKLaboklab(57.91% -0.0907 0.0987)
OKLCHoklch(57.91% 0.134 132.6)
XYZxyz(13.7784, 20.5395, 5.7207)
Luminance0.2054 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8A2D #5D2D8A
analogous
#888A2D #5A8A2D #2D8A2E
triadic
#5A8A2D #2D5A8A #8A2D5A
tetradic
#5A8A2D #2D888A #5D2D8A #8A2E2D
square
#5A8A2D #2D888A #5D2D8A #8A2E2D
split-complementary
#5A8A2D #2E2D8A #8A2D88
monochromatic
#1E2E0F #3C5C1E #5A8A2D #78B83C #97CD65

Accessibility & contrast

On white

4.11
#5A8A2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#5A8A2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8A2D
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8A2D#FFFFFF#000000##000000
##5A8A2D1.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#908021
Deuteranopia (green-blind)
#897C35
Tritanopia (blue-blind)
#5B8477
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5a8a2d;
/* rgb */ color: rgb(90, 138, 45);
/* oklch */ color: oklch(57.9% 0.134 132.6);
Tailwind
colors: {
  custom: {
    50: '#8cac6b',
    500: '#5a8a2d',
    950: '#000000',
  },
}
SCSS
$custom: #5a8a2d;
$custom-light: #8cac6b;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8a2d",
  "rgb": {
    "r": 90,
    "g": 138,
    "b": 45
  },
  "hsl": {
    "h": 90.968,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.57907,
    "c": 0.13405,
    "h": 132.6
  },
  "luminance": 0.2054
}

Semantic roles & 50–950 ramp

primary
#5A8A2D
secondary
#8B60B3
accent
#4DDA96
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #5A8A2D

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

Preview Lab → · Contrast checker → · Palette generator →

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