#5A8331#5A8331

#5A8331 is a mid, vivid yellow-green. Relative luminance 0.186; OKLCH L 56.1% C 0.121 H 131.7°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#5A8331
RGBrgb(90, 131, 49)
HSLhsl(90, 46%, 35%)
HSVhsv(90, 63%, 51%)
CMYKcmyk(31.3%, 0%, 62.6%, 48.6%)
CIE-LABlab(50.25, -28.69, 38.88)
CIE-LCHlch(50.25, 48.32, 126.42°)
OKLaboklab(56.13% -0.0803 0.0903)
OKLCHoklch(56.13% 0.121 131.7)
XYZxyz(12.8870, 18.6276, 5.8216)
Luminance0.1863 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8331 #5A3183
analogous
#838331 #5A8331 #318331
triadic
#5A8331 #315A83 #83315A
tetradic
#5A8331 #318383 #5A3183 #833131
square
#5A8331 #318383 #5A3183 #833131
split-complementary
#5A8331 #313183 #833183
monochromatic
#1D2A10 #3B5620 #5A8331 #79B042 #97C668

Accessibility & contrast

On white

4.44
#5A8331 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#5A8331 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8331
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8331#FFFFFF#000000##000000
##5A83311.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#897A28
Deuteranopia (green-blind)
#837637
Tritanopia (blue-blind)
#5B7E72
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5a8331;
/* rgb */ color: rgb(90, 131, 49);
/* oklch */ color: oklch(56.1% 0.121 131.7);
Tailwind
colors: {
  custom: {
    50: '#8ba76d',
    500: '#5a8331',
    950: '#000000',
  },
}
SCSS
$custom: #5a8331;
$custom-light: #8ba76d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8331",
  "rgb": {
    "r": 90,
    "g": 131,
    "b": 49
  },
  "hsl": {
    "h": 90,
    "s": 45.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.56134,
    "c": 0.12082,
    "h": 131.7
  },
  "luminance": 0.18628
}

Semantic roles & 50–950 ramp

primary
#5A8331
secondary
#8862AE
accent
#53D594
background
#F8FAF6
surface
#F0F4EC
border
#CBCEC7
text
#0C0F07
muted
#7D7F7A

Preview Lab

Preview with #5A8331

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

Preview Lab → · Contrast checker → · Palette generator →

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