#5A7232#5A7232

#5A7232 is a mid, moderate yellow-green. Relative luminance 0.144; OKLCH L 51.8% C 0.095 H 126.6°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#5A7232
RGBrgb(90, 114, 50)
HSLhsl(83, 39%, 32%)
HSVhsv(83, 56%, 45%)
CMYKcmyk(21.1%, 0%, 56.1%, 55.3%)
CIE-LABlab(44.86, -20.06, 32.20)
CIE-LCHlch(44.86, 37.94, 121.92°)
OKLaboklab(51.77% -0.0564 0.076)
OKLCHoklch(51.77% 0.095 126.6)
XYZxyz(10.8095, 14.4384, 5.2344)
Luminance0.1444 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7232 #4A3272
analogous
#726A32 #5A7232 #3A7232
triadic
#5A7232 #325A72 #72325A
tetradic
#5A7232 #32726A #4A3272 #72323A
square
#5A7232 #32726A #4A3272 #72323A
split-complementary
#5A7232 #323A72 #6A3272
monochromatic
#171D0D #38471F #5A7232 #7C9D45 #9ABB64

Accessibility & contrast

On white

5.40
#5A7232 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#5A7232 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7232
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7232#FFFFFF#000000##FFFFFF
##5A72321.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786B2C
Deuteranopia (green-blind)
#746A36
Tritanopia (blue-blind)
#5D6D64
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5a7232;
/* rgb */ color: rgb(90, 114, 50);
/* oklch */ color: oklch(51.8% 0.095 126.6);
Tailwind
colors: {
  custom: {
    50: '#8a9a6c',
    500: '#5a7232',
    950: '#000000',
  },
}
SCSS
$custom: #5a7232;
$custom-light: #8a9a6c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7232",
  "rgb": {
    "r": 90,
    "g": 114,
    "b": 50
  },
  "hsl": {
    "h": 82.5,
    "s": 39.024,
    "l": 32.157
  },
  "oklch": {
    "l": 0.5177,
    "c": 0.09463,
    "h": 126.6
  },
  "luminance": 0.14439
}

Semantic roles & 50–950 ramp

primary
#5A7232
secondary
#775DA3
accent
#59CF85
background
#F8F9F6
surface
#F0F2EB
border
#CBCCC6
text
#0C0E07
muted
#7D7E7A

Preview Lab

Preview with #5A7232

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

Preview Lab → · Contrast checker → · Palette generator →

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