#5A8730#5A8730

#5A8730 is a mid, vivid yellow-green. Relative luminance 0.197; OKLCH L 57.2% C 0.127 H 132.4°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#5A8730
RGBrgb(90, 135, 48)
HSLhsl(91, 48%, 36%)
HSVhsv(91, 64%, 53%)
CMYKcmyk(33.3%, 0%, 64.4%, 47.1%)
CIE-LABlab(51.51, -30.68, 40.74)
CIE-LCHlch(51.51, 51.01, 126.98°)
OKLaboklab(57.16% -0.0859 0.0941)
OKLCHoklch(57.16% 0.127 132.4)
XYZxyz(13.4137, 19.7145, 5.8943)
Luminance0.1971 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8730 #5D3087
analogous
#858730 #5A8730 #308731
triadic
#5A8730 #305A87 #87305A
tetradic
#5A8730 #308587 #5D3087 #873130
square
#5A8730 #308587 #5D3087 #873130
split-complementary
#5A8730 #313087 #873085
monochromatic
#1E2D10 #3C5A20 #5A8730 #78B440 #97C968

Accessibility & contrast

On white

4.25
#5A8730 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#5A8730 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8730
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8730#FFFFFF#000000##000000
##5A87301.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D26
Deuteranopia (green-blind)
#867A37
Tritanopia (blue-blind)
#5B8275
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5a8730;
/* rgb */ color: rgb(90, 135, 48);
/* oklch */ color: oklch(57.2% 0.127 132.4);
Tailwind
colors: {
  custom: {
    50: '#8caa6c',
    500: '#5a8730',
    950: '#000000',
  },
}
SCSS
$custom: #5a8730;
$custom-light: #8caa6c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8730",
  "rgb": {
    "r": 90,
    "g": 135,
    "b": 48
  },
  "hsl": {
    "h": 91.034,
    "s": 47.541,
    "l": 35.882
  },
  "oklch": {
    "l": 0.57159,
    "c": 0.12741,
    "h": 132.4
  },
  "luminance": 0.19715
}

Semantic roles & 50–950 ramp

primary
#5A8730
secondary
#8B62B1
accent
#51D796
background
#F8FAF6
surface
#F0F4EC
border
#CBCEC7
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #5A8730

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

Preview Lab → · Contrast checker → · Palette generator →

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