#5A8724#5A8724

#5A8724 is a mid, vivid yellow-green. Relative luminance 0.196; OKLCH L 57.0% C 0.137 H 131.0°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#5A8724
RGBrgb(90, 135, 36)
HSLhsl(87, 58%, 34%)
HSVhsv(87, 73%, 53%)
CMYKcmyk(33.3%, 0%, 73.3%, 47.1%)
CIE-LABlab(51.41, -31.66, 45.77)
CIE-LCHlch(51.41, 55.65, 124.67°)
OKLaboklab(57.05% -0.0896 0.103)
OKLCHoklch(57.05% 0.137 131)
XYZxyz(13.1987, 19.6285, 4.7620)
Luminance0.1963 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8724 #512487
analogous
#878224 #5A8724 #288724
triadic
#5A8724 #245A87 #87245A
tetradic
#5A8724 #248782 #512487 #872428
square
#5A8724 #248782 #512487 #872428
split-complementary
#5A8724 #242887 #822487
monochromatic
#1A260A #3A5717 #5A8724 #7AB731 #98D154

Accessibility & contrast

On white

4.26
#5A8724 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#5A8724 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8724
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8724#FFFFFF#000000##000000
##5A87241.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D13
Deuteranopia (green-blind)
#87792D
Tritanopia (blue-blind)
#5C8174
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5a8724;
/* rgb */ color: rgb(90, 135, 36);
/* oklch */ color: oklch(57.0% 0.137 131.0);
Tailwind
colors: {
  custom: {
    50: '#8caa65',
    500: '#5a8724',
    950: '#000000',
  },
}
SCSS
$custom: #5a8724;
$custom-light: #8caa65;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8724",
  "rgb": {
    "r": 90,
    "g": 135,
    "b": 36
  },
  "hsl": {
    "h": 87.273,
    "s": 57.895,
    "l": 33.529
  },
  "oklch": {
    "l": 0.57048,
    "c": 0.1365,
    "h": 131
  },
  "luminance": 0.19629
}

Semantic roles & 50–950 ramp

primary
#5A8724
secondary
#7F51B5
accent
#47E18D
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #5A8724

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

Preview Lab → · Contrast checker → · Palette generator →

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