#5A8B1E#5A8B1E

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

Color values

HEX#5A8B1E
RGBrgb(90, 139, 30)
HSLhsl(87, 64%, 33%)
HSVhsv(87, 78%, 55%)
CMYKcmyk(35.3%, 0%, 78.4%, 45.5%)
CIE-LABlab(52.66, -33.87, 49.18)
CIE-LCHlch(52.66, 59.72, 124.56°)
OKLaboklab(58.05% -0.096 0.1092)
OKLCHoklch(58.05% 0.145 131.3)
XYZxyz(13.6833, 20.7321, 4.5088)
Luminance0.2073 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8B1E #4F1E8B
analogous
#8B851E #5A8B1E #248B1E
triadic
#5A8B1E #1E5A8B #8B1E5A
tetradic
#5A8B1E #1E8B85 #4F1E8B #8B1E24
square
#5A8B1E #1E8B85 #4F1E8B #8B1E24
split-complementary
#5A8B1E #1E248B #851E8B
monochromatic
#192608 #395913 #5A8B1E #7BBD29 #99D84B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A8B1E#FFFFFF#000000##000000
##5A8B1E1.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)
#918003
Deuteranopia (green-blind)
#8B7C29
Tritanopia (blue-blind)
#5C8577
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5a8b1e;
/* rgb */ color: rgb(90, 139, 30);
/* oklch */ color: oklch(58.0% 0.145 131.3);
Tailwind
colors: {
  custom: {
    50: '#8dad63',
    500: '#5a8b1e',
    950: '#000000',
  },
}
SCSS
$custom: #5a8b1e;
$custom-light: #8dad63;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8b1e",
  "rgb": {
    "r": 90,
    "g": 139,
    "b": 30
  },
  "hsl": {
    "h": 86.972,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.58047,
    "c": 0.14542,
    "h": 131.3
  },
  "luminance": 0.20733
}

Semantic roles & 50–950 ramp

primary
#5A8B1E
secondary
#7D4ABB
accent
#40E78B
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5A8B1E

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

Preview Lab → · Contrast checker → · Palette generator →

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