#5A8F22#5A8F22

#5A8F22 is a mid, vivid yellow-green. Relative luminance 0.219; OKLCH L 59.1% C 0.148 H 132.4°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#5A8F22
RGBrgb(90, 143, 34)
HSLhsl(89, 62%, 35%)
HSVhsv(89, 76%, 56%)
CMYKcmyk(37.1%, 0%, 76.2%, 43.9%)
CIE-LABlab(53.96, -35.43, 49.03)
CIE-LCHlch(53.96, 60.50, 125.85°)
OKLaboklab(59.12% -0.1 0.1095)
OKLCHoklch(59.12% 0.148 132.4)
XYZxyz(14.3275, 21.9335, 4.9917)
Luminance0.2193 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8F22 #57228F
analogous
#8F8D22 #5A8F22 #248F22
triadic
#5A8F22 #225A8F #8F225A
tetradic
#5A8F22 #228F8D #57228F #8F2224
square
#5A8F22 #228F8D #57228F #8F2224
split-complementary
#5A8F22 #22248F #8D228F
monochromatic
#1C2C0A #3B5E16 #5A8F22 #79C02E #97D755

Accessibility & contrast

On white

3.90
#5A8F22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#5A8F22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8F22
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8F22#FFFFFF#000000##000000
##5A8F221.003.905.395.39
#FFFFFF3.901.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#95840B
Deuteranopia (green-blind)
#8E802D
Tritanopia (blue-blind)
#5B897A
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5a8f22;
/* rgb */ color: rgb(90, 143, 34);
/* oklch */ color: oklch(59.1% 0.148 132.4);
Tailwind
colors: {
  custom: {
    50: '#8db065',
    500: '#5a8f22',
    950: '#000000',
  },
}
SCSS
$custom: #5a8f22;
$custom-light: #8db065;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8f22",
  "rgb": {
    "r": 90,
    "g": 143,
    "b": 34
  },
  "hsl": {
    "h": 89.174,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.59117,
    "c": 0.1483,
    "h": 132.4
  },
  "luminance": 0.21934
}

Semantic roles & 50–950 ramp

primary
#5A8F22
secondary
#8552BA
accent
#43E592
background
#F9FAF6
surface
#F1F5EB
border
#CBCFC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5A8F22

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

Preview Lab → · Contrast checker → · Palette generator →

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