#5A8B22#5A8B22

#5A8B22 is a mid, vivid yellow-green. Relative luminance 0.208; OKLCH L 58.1% C 0.143 H 131.7°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#5A8B22
RGBrgb(90, 139, 34)
HSLhsl(88, 61%, 34%)
HSVhsv(88, 76%, 55%)
CMYKcmyk(35.3%, 0%, 75.5%, 45.5%)
CIE-LABlab(52.68, -33.63, 47.78)
CIE-LCHlch(52.68, 58.43, 125.14°)
OKLaboklab(58.07% -0.0951 0.1069)
OKLCHoklch(58.07% 0.143 131.7)
XYZxyz(13.7377, 20.7539, 4.7951)
Luminance0.2075 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8B22 #53228B
analogous
#8B8822 #5A8B22 #268B22
triadic
#5A8B22 #225A8B #8B225A
tetradic
#5A8B22 #228B88 #53228B #8B2226
square
#5A8B22 #228B88 #53228B #8B2226
split-complementary
#5A8B22 #22268B #88228B
monochromatic
#1A290A #3A5A16 #5A8B22 #7ABC2E #98D553

Accessibility & contrast

On white

4.08
#5A8B22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#5A8B22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8B22
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8B22#FFFFFF#000000##000000
##5A8B221.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#91800D
Deuteranopia (green-blind)
#8A7C2C
Tritanopia (blue-blind)
#5B8577
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5a8b22;
/* rgb */ color: rgb(90, 139, 34);
/* oklch */ color: oklch(58.1% 0.143 131.7);
Tailwind
colors: {
  custom: {
    50: '#8dad65',
    500: '#5a8b22',
    950: '#000000',
  },
}
SCSS
$custom: #5a8b22;
$custom-light: #8dad65;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8b22",
  "rgb": {
    "r": 90,
    "g": 139,
    "b": 34
  },
  "hsl": {
    "h": 88,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.58074,
    "c": 0.14308,
    "h": 131.7
  },
  "luminance": 0.20754
}

Semantic roles & 50–950 ramp

primary
#5A8B22
secondary
#8150B8
accent
#44E48F
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0D1006
muted
#7D7F7A

Preview Lab

Preview with #5A8B22

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

Preview Lab → · Contrast checker → · Palette generator →

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