#5A8D2D#5A8D2D

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

Color values

HEX#5A8D2D
RGBrgb(90, 141, 45)
HSLhsl(92, 52%, 36%)
HSVhsv(92, 68%, 55%)
CMYKcmyk(36.2%, 0%, 68.1%, 44.7%)
CIE-LABlab(53.40, -33.73, 44.11)
CIE-LCHlch(53.40, 55.53, 127.40°)
OKLaboklab(58.69% -0.0945 0.1008)
OKLCHoklch(58.69% 0.138 133.1)
XYZxyz(14.2148, 21.4123, 5.8661)
Luminance0.2141 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8D2D #602D8D
analogous
#8A8D2D #5A8D2D #2D8D30
triadic
#5A8D2D #2D5A8D #8D2D5A
tetradic
#5A8D2D #2D8A8D #602D8D #8D302D
square
#5A8D2D #2D8A8D #602D8D #8D302D
split-complementary
#5A8D2D #302D8D #8D2D8A
monochromatic
#1F300F #3C5F1E #5A8D2D #78BB3C #97CE66

Accessibility & contrast

On white

3.98
#5A8D2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#5A8D2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8D2D
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8D2D#FFFFFF#000000##000000
##5A8D2D1.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#938220
Deuteranopia (green-blind)
#8C7E35
Tritanopia (blue-blind)
#5A8779
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5a8d2d;
/* rgb */ color: rgb(90, 141, 45);
/* oklch */ color: oklch(58.7% 0.138 133.1);
Tailwind
colors: {
  custom: {
    50: '#8dae6b',
    500: '#5a8d2d',
    950: '#000000',
  },
}
SCSS
$custom: #5a8d2d;
$custom-light: #8dae6b;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8d2d",
  "rgb": {
    "r": 90,
    "g": 141,
    "b": 45
  },
  "hsl": {
    "h": 91.875,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.58686,
    "c": 0.13817,
    "h": 133.1
  },
  "luminance": 0.21413
}

Semantic roles & 50–950 ramp

primary
#5A8D2D
secondary
#8E61B5
accent
#4DDB98
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #5A8D2D

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

Preview Lab → · Contrast checker → · Palette generator →

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