#5A9731#5A9731

#5A9731 is a mid, vivid yellow-green. Relative luminance 0.245; OKLCH L 61.3% C 0.149 H 135.1°. Best body text is #000000 at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#5A9731
RGBrgb(90, 151, 49)
HSLhsl(96, 51%, 39%)
HSVhsv(96, 68%, 59%)
CMYKcmyk(40.4%, 0%, 67.5%, 40.8%)
CIE-LABlab(56.61, -37.85, 45.82)
CIE-LCHlch(56.61, 59.43, 129.55°)
OKLaboklab(61.32% -0.1054 0.105)
OKLCHoklch(61.32% 0.149 135.1)
XYZxyz(15.8371, 24.5278, 6.8050)
Luminance0.2453 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A9731 #6E3197
analogous
#8D9731 #5A9731 #31973B
triadic
#5A9731 #315A97 #97315A
tetradic
#5A9731 #318D97 #6E3197 #973B31
square
#5A9731 #318D97 #6E3197 #973B31
split-complementary
#5A9731 #3B3197 #97318D
monochromatic
#233B13 #3E6922 #5A9731 #76C243 #98D171

Accessibility & contrast

On white

3.56
#5A9731 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.91
#5A9731 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A9731
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A9731#FFFFFF#000000##000000
##5A97311.003.565.915.91
#FFFFFF3.561.0021.0021.00
#0000005.9121.001.001.00
##0000005.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8B23
Deuteranopia (green-blind)
#94863A
Tritanopia (blue-blind)
#599182
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #5a9731;
/* rgb */ color: rgb(90, 151, 49);
/* oklch */ color: oklch(61.3% 0.149 135.1);
Tailwind
colors: {
  custom: {
    50: '#8db66e',
    500: '#5a9731',
    950: '#000000',
  },
}
SCSS
$custom: #5a9731;
$custom-light: #8db66e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a9731",
  "rgb": {
    "r": 90,
    "g": 151,
    "b": 49
  },
  "hsl": {
    "h": 95.882,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.61322,
    "c": 0.14873,
    "h": 135.1
  },
  "luminance": 0.24529
}

Semantic roles & 50–950 ramp

primary
#5A9731
secondary
#9A6BB9
accent
#4DDAA2
background
#F9FBF6
surface
#F1F6EC
border
#CBD0C7
text
#0D1107
muted
#7E807A

Preview Lab

Preview with #5A9731

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

Preview Lab → · Contrast checker → · Palette generator →

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