#5A8A1E#5A8A1E

#5A8A1E is a mid, vivid yellow-green. Relative luminance 0.204; OKLCH L 57.8% C 0.144 H 131.1°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#5A8A1E
RGBrgb(90, 138, 30)
HSLhsl(87, 64%, 33%)
HSVhsv(87, 78%, 54%)
CMYKcmyk(34.8%, 0%, 78.3%, 45.9%)
CIE-LABlab(52.34, -33.42, 48.87)
CIE-LCHlch(52.34, 59.21, 124.36°)
OKLaboklab(57.79% -0.0948 0.1086)
OKLCHoklch(57.79% 0.144 131.1)
XYZxyz(13.5392, 20.4439, 4.4607)
Luminance0.2044 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8A1E #4E1E8A
analogous
#8A841E #5A8A1E #248A1E
triadic
#5A8A1E #1E5A8A #8A1E5A
tetradic
#5A8A1E #1E8A84 #4E1E8A #8A1E24
square
#5A8A1E #1E8A84 #4E1E8A #8A1E24
split-complementary
#5A8A1E #1E248A #841E8A
monochromatic
#182508 #395813 #5A8A1E #7BBC29 #99D84B

Accessibility & contrast

On white

4.13
#5A8A1E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#5A8A1E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8A1E
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8A1E#FFFFFF#000000##000000
##5A8A1E1.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F03
Deuteranopia (green-blind)
#8A7C29
Tritanopia (blue-blind)
#5C8476
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5a8a1e;
/* rgb */ color: rgb(90, 138, 30);
/* oklch */ color: oklch(57.8% 0.144 131.1);
Tailwind
colors: {
  custom: {
    50: '#8dac63',
    500: '#5a8a1e',
    950: '#000000',
  },
}
SCSS
$custom: #5a8a1e;
$custom-light: #8dac63;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8a1e",
  "rgb": {
    "r": 90,
    "g": 138,
    "b": 30
  },
  "hsl": {
    "h": 86.667,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.57786,
    "c": 0.14413,
    "h": 131.1
  },
  "luminance": 0.20444
}

Semantic roles & 50–950 ramp

primary
#5A8A1E
secondary
#7C4ABA
accent
#41E78B
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0D1006
muted
#7D7F7A

Preview Lab

Preview with #5A8A1E

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

Preview Lab → · Contrast checker → · Palette generator →

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