#5A9321#5A9321

#5A9321 is a mid, vivid yellow-green. Relative luminance 0.232; OKLCH L 60.2% C 0.154 H 133.0°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#5A9321
RGBrgb(90, 147, 33)
HSLhsl(90, 63%, 35%)
HSVhsv(90, 78%, 58%)
CMYKcmyk(38.8%, 0%, 77.6%, 42.4%)
CIE-LABlab(55.23, -37.26, 50.61)
CIE-LCHlch(55.23, 62.85, 126.36°)
OKLaboklab(60.15% -0.105 0.1127)
OKLCHoklch(60.15% 0.154 133)
XYZxyz(14.9245, 23.1502, 5.1206)
Luminance0.2315 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A9321 #5A2193
analogous
#939321 #5A9321 #219321
triadic
#5A9321 #215A93 #93215A
tetradic
#5A9321 #219393 #5A2193 #932121
square
#5A9321 #219393 #5A2193 #932121
split-complementary
#5A9321 #212193 #932193
monochromatic
#1D2F0B #3B6116 #5A9321 #79C52C #97D955

Accessibility & contrast

On white

3.73
#5A9321 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#5A9321 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A9321
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A9321#FFFFFF#000000##000000
##5A93211.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#998705
Deuteranopia (green-blind)
#91832D
Tritanopia (blue-blind)
#5A8D7D
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5a9321;
/* rgb */ color: rgb(90, 147, 33);
/* oklch */ color: oklch(60.2% 0.154 133.0);
Tailwind
colors: {
  custom: {
    50: '#8eb365',
    500: '#5a9321',
    950: '#000000',
  },
}
SCSS
$custom: #5a9321;
$custom-light: #8eb365;
$custom-dark: #000000;
JSON
{
  "hex": "#5a9321",
  "rgb": {
    "r": 90,
    "g": 147,
    "b": 33
  },
  "hsl": {
    "h": 90,
    "s": 63.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.60153,
    "c": 0.15402,
    "h": 133
  },
  "luminance": 0.23151
}

Semantic roles & 50–950 ramp

primary
#5A9321
secondary
#8853BD
accent
#41E694
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5A9321

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

Preview Lab → · Contrast checker → · Palette generator →

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