#5A7331#5A7331

#5A7331 is a mid, moderate yellow-green. Relative luminance 0.147; OKLCH L 52.0% C 0.097 H 126.8°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#5A7331
RGBrgb(90, 115, 49)
HSLhsl(83, 40%, 32%)
HSVhsv(83, 57%, 45%)
CMYKcmyk(21.7%, 0%, 57.4%, 54.9%)
CIE-LABlab(45.16, -20.69, 33.07)
CIE-LCHlch(45.16, 39.01, 122.03°)
OKLaboklab(52.01% -0.0582 0.0778)
OKLCHoklch(52.01% 0.097 126.8)
XYZxyz(10.9015, 14.6567, 5.1598)
Luminance0.1466 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7331 #4A3173
analogous
#736B31 #5A7331 #397331
triadic
#5A7331 #315A73 #73315A
tetradic
#5A7331 #31736B #4A3173 #733139
square
#5A7331 #31736B #4A3173 #733139
split-complementary
#5A7331 #313973 #6B3173
monochromatic
#171D0C #38481F #5A7331 #7C9E43 #9ABC62

Accessibility & contrast

On white

5.34
#5A7331 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#5A7331 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7331
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7331#FFFFFF#000000##FFFFFF
##5A73311.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796C2B
Deuteranopia (green-blind)
#756A35
Tritanopia (blue-blind)
#5D6E64
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5a7331;
/* rgb */ color: rgb(90, 115, 49);
/* oklch */ color: oklch(52.0% 0.097 126.8);
Tailwind
colors: {
  custom: {
    50: '#8a9b6b',
    500: '#5a7331',
    950: '#000000',
  },
}
SCSS
$custom: #5a7331;
$custom-light: #8a9b6b;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7331",
  "rgb": {
    "r": 90,
    "g": 115,
    "b": 49
  },
  "hsl": {
    "h": 82.727,
    "s": 40.244,
    "l": 32.157
  },
  "oklch": {
    "l": 0.52012,
    "c": 0.09718,
    "h": 126.8
  },
  "luminance": 0.14657
}

Semantic roles & 50–950 ramp

primary
#5A7331
secondary
#775CA4
accent
#58D085
background
#F8F9F6
surface
#F0F2EB
border
#CBCCC6
text
#0C0E07
muted
#7D7E7A

Preview Lab

Preview with #5A7331

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

Preview Lab → · Contrast checker → · Palette generator →

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