#5A8A2F#5A8A2F

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

Color values

HEX#5A8A2F
RGBrgb(90, 138, 47)
HSLhsl(92, 49%, 36%)
HSVhsv(92, 66%, 54%)
CMYKcmyk(34.8%, 0%, 65.9%, 45.9%)
CIE-LABlab(52.46, -32.18, 42.23)
CIE-LCHlch(52.46, 53.09, 127.30°)
OKLaboklab(57.93% -0.0901 0.0971)
OKLCHoklch(57.93% 0.132 132.8)
XYZxyz(13.8178, 20.5553, 5.9283)
Luminance0.2056 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8A2F #5F2F8A
analogous
#888A2F #5A8A2F #2F8A32
triadic
#5A8A2F #2F5A8A #8A2F5A
tetradic
#5A8A2F #2F888A #5F2F8A #8A322F
square
#5A8A2F #2F888A #5F2F8A #8A322F
split-complementary
#5A8A2F #322F8A #8A2F88
monochromatic
#1E2F10 #3C5C1F #5A8A2F #78B83F #97CC68

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A8A2F#FFFFFF#000000##000000
##5A8A2F1.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)
#908024
Deuteranopia (green-blind)
#897C36
Tritanopia (blue-blind)
#5B8577
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5a8a2f;
/* rgb */ color: rgb(90, 138, 47);
/* oklch */ color: oklch(57.9% 0.132 132.8);
Tailwind
colors: {
  custom: {
    50: '#8cac6c',
    500: '#5a8a2f',
    950: '#000000',
  },
}
SCSS
$custom: #5a8a2f;
$custom-light: #8cac6c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8a2f",
  "rgb": {
    "r": 90,
    "g": 138,
    "b": 47
  },
  "hsl": {
    "h": 91.648,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.57927,
    "c": 0.13246,
    "h": 132.8
  },
  "luminance": 0.20556
}

Semantic roles & 50–950 ramp

primary
#5A8A2F
secondary
#8D62B3
accent
#4FD998
background
#F8FAF6
surface
#F0F4EC
border
#CBCEC7
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #5A8A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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