#5A8B1F#5A8B1F

#5A8B1F is a mid, vivid yellow-green. Relative luminance 0.207; OKLCH L 58.1% C 0.145 H 131.4°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#5A8B1F
RGBrgb(90, 139, 31)
HSLhsl(87, 64%, 33%)
HSVhsv(87, 78%, 55%)
CMYKcmyk(35.3%, 0%, 77.7%, 45.5%)
CIE-LABlab(52.66, -33.82, 48.84)
CIE-LCHlch(52.66, 59.40, 124.70°)
OKLaboklab(58.05% -0.0958 0.1086)
OKLCHoklch(58.05% 0.145 131.4)
XYZxyz(13.6963, 20.7373, 4.5771)
Luminance0.2074 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8B1F #501F8B
analogous
#8B861F #5A8B1F #248B1F
triadic
#5A8B1F #1F5A8B #8B1F5A
tetradic
#5A8B1F #1F8B86 #501F8B #8B1F24
square
#5A8B1F #1F8B86 #501F8B #8B1F24
split-complementary
#5A8B1F #1F248B #861F8B
monochromatic
#192709 #3A5914 #5A8B1F #7ABD2A #99D74D

Accessibility & contrast

On white

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

On black

5.15
#5A8B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8B1F
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8B1F#FFFFFF#000000##000000
##5A8B1F1.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#918005
Deuteranopia (green-blind)
#8B7C2A
Tritanopia (blue-blind)
#5C8577
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5a8b1f;
/* rgb */ color: rgb(90, 139, 31);
/* oklch */ color: oklch(58.1% 0.145 131.4);
Tailwind
colors: {
  custom: {
    50: '#8dad63',
    500: '#5a8b1f',
    950: '#000000',
  },
}
SCSS
$custom: #5a8b1f;
$custom-light: #8dad63;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8b1f",
  "rgb": {
    "r": 90,
    "g": 139,
    "b": 31
  },
  "hsl": {
    "h": 87.222,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.58053,
    "c": 0.14486,
    "h": 131.4
  },
  "luminance": 0.20738
}

Semantic roles & 50–950 ramp

primary
#5A8B1F
secondary
#7E4CBA
accent
#41E78C
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0D1006
muted
#7D7F7A

Preview Lab

Preview with #5A8B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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