#5A8B2D#5A8B2D

#5A8B2D is a mid, vivid yellow-green. Relative luminance 0.208; OKLCH L 58.2% C 0.135 H 132.8°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#5A8B2D
RGBrgb(90, 139, 45)
HSLhsl(91, 51%, 36%)
HSVhsv(91, 68%, 55%)
CMYKcmyk(35.3%, 0%, 67.6%, 45.5%)
CIE-LABlab(52.76, -32.81, 43.44)
CIE-LCHlch(52.76, 54.44, 127.07°)
OKLaboklab(58.17% -0.092 0.0994)
OKLCHoklch(58.17% 0.135 132.8)
XYZxyz(13.9225, 20.8278, 5.7687)
Luminance0.2083 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8B2D #5E2D8B
analogous
#898B2D #5A8B2D #2D8B2F
triadic
#5A8B2D #2D5A8B #8B2D5A
tetradic
#5A8B2D #2D898B #5E2D8B #8B2F2D
square
#5A8B2D #2D898B #5E2D8B #8B2F2D
split-complementary
#5A8B2D #2F2D8B #8B2D89
monochromatic
#1E2F0F #3C5D1E #5A8B2D #78B93C #97CD65

Accessibility & contrast

On white

4.07
#5A8B2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#5A8B2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8B2D
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8B2D#FFFFFF#000000##000000
##5A8B2D1.004.075.175.17
#FFFFFF4.071.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#918020
Deuteranopia (green-blind)
#8A7D35
Tritanopia (blue-blind)
#5B8578
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5a8b2d;
/* rgb */ color: rgb(90, 139, 45);
/* oklch */ color: oklch(58.2% 0.135 132.8);
Tailwind
colors: {
  custom: {
    50: '#8cad6b',
    500: '#5a8b2d',
    950: '#000000',
  },
}
SCSS
$custom: #5a8b2d;
$custom-light: #8cad6b;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8b2d",
  "rgb": {
    "r": 90,
    "g": 139,
    "b": 45
  },
  "hsl": {
    "h": 91.277,
    "s": 51.087,
    "l": 36.078
  },
  "oklch": {
    "l": 0.58167,
    "c": 0.13542,
    "h": 132.8
  },
  "luminance": 0.20828
}

Semantic roles & 50–950 ramp

primary
#5A8B2D
secondary
#8C60B4
accent
#4DDB97
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #5A8B2D

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

Preview Lab → · Contrast checker → · Palette generator →

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