#5A8A1F#5A8A1F

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

Color values

HEX#5A8A1F
RGBrgb(90, 138, 31)
HSLhsl(87, 63%, 33%)
HSVhsv(87, 78%, 54%)
CMYKcmyk(34.8%, 0%, 77.5%, 45.9%)
CIE-LABlab(52.34, -33.36, 48.53)
CIE-LCHlch(52.34, 58.89, 124.51°)
OKLaboklab(57.79% -0.0946 0.108)
OKLCHoklch(57.79% 0.144 131.2)
XYZxyz(13.5521, 20.4490, 4.5291)
Luminance0.2045 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8A1F #4F1F8A
analogous
#8A841F #5A8A1F #248A1F
triadic
#5A8A1F #1F5A8A #8A1F5A
tetradic
#5A8A1F #1F8A84 #4F1F8A #8A1F24
square
#5A8A1F #1F8A84 #4F1F8A #8A1F24
split-complementary
#5A8A1F #1F248A #841F8A
monochromatic
#192609 #395814 #5A8A1F #7BBC2A #99D74C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A8A1F#FFFFFF#000000##000000
##5A8A1F1.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)
#907F06
Deuteranopia (green-blind)
#8A7C2A
Tritanopia (blue-blind)
#5C8476
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5a8a1f;
/* rgb */ color: rgb(90, 138, 31);
/* oklch */ color: oklch(57.8% 0.144 131.2);
Tailwind
colors: {
  custom: {
    50: '#8dac63',
    500: '#5a8a1f',
    950: '#000000',
  },
}
SCSS
$custom: #5a8a1f;
$custom-light: #8dac63;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8a1f",
  "rgb": {
    "r": 90,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 86.916,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.57793,
    "c": 0.14357,
    "h": 131.2
  },
  "luminance": 0.2045
}

Semantic roles & 50–950 ramp

primary
#5A8A1F
secondary
#7D4BBA
accent
#41E68B
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0D1006
muted
#7D7F7A

Preview Lab

Preview with #5A8A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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