#5A8B1A#5A8B1A

#5A8B1A is a mid, vivid yellow-green. Relative luminance 0.207; OKLCH L 58.0% C 0.148 H 131.1°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#5A8B1A
RGBrgb(90, 139, 26)
HSLhsl(86, 68%, 32%)
HSVhsv(86, 81%, 55%)
CMYKcmyk(35.3%, 0%, 81.3%, 45.5%)
CIE-LABlab(52.63, -34.09, 50.46)
CIE-LCHlch(52.63, 60.89, 124.04°)
OKLaboklab(58.02% -0.0969 0.1112)
OKLCHoklch(58.02% 0.148 131.1)
XYZxyz(13.6354, 20.7130, 4.2567)
Luminance0.2071 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8B1A #4B1A8B
analogous
#8B841A #5A8B1A #218B1A
triadic
#5A8B1A #1A5A8B #8B1A5A
tetradic
#5A8B1A #1A8B84 #4B1A8B #8B1A21
square
#5A8B1A #1A8B84 #4B1A8B #8B1A21
split-complementary
#5A8B1A #1A218B #841A8B
monochromatic
#172407 #395710 #5A8B1A #7BBF24 #9ADC43

Accessibility & contrast

On white

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

On black

5.14
#5A8B1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8B1A
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8B1A#FFFFFF#000000##000000
##5A8B1A1.004.085.145.14
#FFFFFF4.081.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#918000
Deuteranopia (green-blind)
#8B7C27
Tritanopia (blue-blind)
#5C8576
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5a8b1a;
/* rgb */ color: rgb(90, 139, 26);
/* oklch */ color: oklch(58.0% 0.148 131.1);
Tailwind
colors: {
  custom: {
    50: '#8dad61',
    500: '#5a8b1a',
    950: '#000000',
  },
}
SCSS
$custom: #5a8b1a;
$custom-light: #8dad61;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8b1a",
  "rgb": {
    "r": 90,
    "g": 139,
    "b": 26
  },
  "hsl": {
    "h": 86.018,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.58023,
    "c": 0.14753,
    "h": 131.1
  },
  "luminance": 0.20713
}

Semantic roles & 50–950 ramp

primary
#5A8B1A
secondary
#7844BD
accent
#3CEB88
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1005
muted
#7E7F7A

Preview Lab

Preview with #5A8B1A

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

Preview Lab → · Contrast checker → · Palette generator →

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