#5A8E1F#5A8E1F

#5A8E1F is a mid, vivid yellow-green. Relative luminance 0.216; OKLCH L 58.8% C 0.149 H 132.0°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#5A8E1F
RGBrgb(90, 142, 31)
HSLhsl(88, 64%, 34%)
HSVhsv(88, 78%, 56%)
CMYKcmyk(36.6%, 0%, 78.2%, 44.3%)
CIE-LABlab(53.62, -35.17, 49.76)
CIE-LCHlch(53.62, 60.93, 125.25°)
OKLaboklab(58.84% -0.0995 0.1106)
OKLCHoklch(58.84% 0.149 132)
XYZxyz(14.1366, 21.6180, 4.7239)
Luminance0.2162 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8E1F #531F8E
analogous
#8E8B1F #5A8E1F #238E1F
triadic
#5A8E1F #1F5A8E #8E1F5A
tetradic
#5A8E1F #1F8E8B #531F8E #8E1F23
square
#5A8E1F #1F8E8B #531F8E #8E1F23
split-complementary
#5A8E1F #1F238E #8B1F8E
monochromatic
#1A2A09 #3A5C14 #5A8E1F #7AC02A #98D94F

Accessibility & contrast

On white

3.94
#5A8E1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#5A8E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8E1F
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8E1F#FFFFFF#000000##000000
##5A8E1F1.003.945.325.32
#FFFFFF3.941.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#948303
Deuteranopia (green-blind)
#8D7F2B
Tritanopia (blue-blind)
#5B8879
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5a8e1f;
/* rgb */ color: rgb(90, 142, 31);
/* oklch */ color: oklch(58.8% 0.149 132.0);
Tailwind
colors: {
  custom: {
    50: '#8daf64',
    500: '#5a8e1f',
    950: '#000000',
  },
}
SCSS
$custom: #5a8e1f;
$custom-light: #8daf64;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8e1f",
  "rgb": {
    "r": 90,
    "g": 142,
    "b": 31
  },
  "hsl": {
    "h": 88.108,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.58836,
    "c": 0.14873,
    "h": 132
  },
  "luminance": 0.21619
}

Semantic roles & 50–950 ramp

primary
#5A8E1F
secondary
#814DBB
accent
#41E78F
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5A8E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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