#5A9122#5A9122

#5A9122 is a mid, vivid yellow-green. Relative luminance 0.225; OKLCH L 59.6% C 0.151 H 132.7°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#5A9122
RGBrgb(90, 145, 34)
HSLhsl(90, 62%, 35%)
HSVhsv(90, 77%, 57%)
CMYKcmyk(37.9%, 0%, 76.6%, 43.1%)
CIE-LABlab(54.59, -36.32, 49.66)
CIE-LCHlch(54.59, 61.52, 126.19°)
OKLaboklab(59.64% -0.1024 0.1108)
OKLCHoklch(59.64% 0.151 132.7)
XYZxyz(14.6304, 22.5393, 5.0927)
Luminance0.2254 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A9122 #592291
analogous
#919122 #5A9122 #229122
triadic
#5A9122 #225A91 #91225A
tetradic
#5A9122 #229191 #592291 #912222
square
#5A9122 #229191 #592291 #912222
split-complementary
#5A9122 #222291 #912291
monochromatic
#1C2E0B #3B5F16 #5A9122 #79C32E #97D756

Accessibility & contrast

On white

3.81
#5A9122 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#5A9122 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A9122
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A9122#FFFFFF#000000##000000
##5A91221.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#978509
Deuteranopia (green-blind)
#90812D
Tritanopia (blue-blind)
#5B8B7C
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #5a9122;
/* rgb */ color: rgb(90, 145, 34);
/* oklch */ color: oklch(59.6% 0.151 132.7);
Tailwind
colors: {
  custom: {
    50: '#8db166',
    500: '#5a9122',
    950: '#000000',
  },
}
SCSS
$custom: #5a9122;
$custom-light: #8db166;
$custom-dark: #000000;
JSON
{
  "hex": "#5a9122",
  "rgb": {
    "r": 90,
    "g": 145,
    "b": 34
  },
  "hsl": {
    "h": 89.73,
    "s": 62.011,
    "l": 35.098
  },
  "oklch": {
    "l": 0.59638,
    "c": 0.15088,
    "h": 132.7
  },
  "luminance": 0.2254
}

Semantic roles & 50–950 ramp

primary
#5A9122
secondary
#8753BB
accent
#43E593
background
#F9FAF6
surface
#F1F5EB
border
#CBCFC6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5A9122

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

Preview Lab → · Contrast checker → · Palette generator →

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