#5A8B1D#5A8B1D

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

Color values

HEX#5A8B1D
RGBrgb(90, 139, 29)
HSLhsl(87, 65%, 33%)
HSVhsv(87, 79%, 55%)
CMYKcmyk(35.3%, 0%, 79.1%, 45.5%)
CIE-LABlab(52.65, -33.93, 49.51)
CIE-LCHlch(52.65, 60.02, 124.43°)
OKLaboklab(58.04% -0.0963 0.1097)
OKLCHoklch(58.04% 0.146 131.3)
XYZxyz(13.6707, 20.7271, 4.4426)
Luminance0.2073 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8B1D #4E1D8B
analogous
#8B851D #5A8B1D #238B1D
triadic
#5A8B1D #1D5A8B #8B1D5A
tetradic
#5A8B1D #1D8B85 #4E1D8B #8B1D23
square
#5A8B1D #1D8B85 #4E1D8B #8B1D23
split-complementary
#5A8B1D #1D238B #851D8B
monochromatic
#182608 #395812 #5A8B1D #7BBE28 #99D949

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A8B1D#FFFFFF#000000##000000
##5A8B1D1.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)
#918000
Deuteranopia (green-blind)
#8B7C29
Tritanopia (blue-blind)
#5C8576
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5a8b1d;
/* rgb */ color: rgb(90, 139, 29);
/* oklch */ color: oklch(58.0% 0.146 131.3);
Tailwind
colors: {
  custom: {
    50: '#8dad63',
    500: '#5a8b1d',
    950: '#000000',
  },
}
SCSS
$custom: #5a8b1d;
$custom-light: #8dad63;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8b1d",
  "rgb": {
    "r": 90,
    "g": 139,
    "b": 29
  },
  "hsl": {
    "h": 86.727,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.58041,
    "c": 0.14597,
    "h": 131.3
  },
  "luminance": 0.20728
}

Semantic roles & 50–950 ramp

primary
#5A8B1D
secondary
#7C49BB
accent
#3FE88B
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5A8B1D

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

Preview Lab → · Contrast checker → · Palette generator →

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