#5A8825#5A8825

#5A8825 is a mid, vivid yellow-green. Relative luminance 0.199; OKLCH L 57.3% C 0.137 H 131.3°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#5A8825
RGBrgb(90, 136, 37)
HSLhsl(88, 57%, 34%)
HSVhsv(88, 73%, 53%)
CMYKcmyk(33.8%, 0%, 72.8%, 46.7%)
CIE-LABlab(51.74, -32.05, 45.70)
CIE-LCHlch(51.74, 55.82, 125.04°)
OKLaboklab(57.32% -0.0906 0.103)
OKLCHoklch(57.32% 0.137 131.3)
XYZxyz(13.3544, 19.9151, 4.8903)
Luminance0.1992 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8825 #532588
analogous
#888525 #5A8825 #298825
triadic
#5A8825 #255A88 #88255A
tetradic
#5A8825 #258885 #532588 #882529
square
#5A8825 #258885 #532588 #882529
split-complementary
#5A8825 #252988 #852588
monochromatic
#1A280B #3A5818 #5A8825 #7AB832 #98D156

Accessibility & contrast

On white

4.21
#5A8825 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#5A8825 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8825
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8825#FFFFFF#000000##000000
##5A88251.004.214.984.98
#FFFFFF4.211.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E14
Deuteranopia (green-blind)
#887A2E
Tritanopia (blue-blind)
#5C8275
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5a8825;
/* rgb */ color: rgb(90, 136, 37);
/* oklch */ color: oklch(57.3% 0.137 131.3);
Tailwind
colors: {
  custom: {
    50: '#8cab66',
    500: '#5a8825',
    950: '#000000',
  },
}
SCSS
$custom: #5a8825;
$custom-light: #8cab66;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8825",
  "rgb": {
    "r": 90,
    "g": 136,
    "b": 37
  },
  "hsl": {
    "h": 87.879,
    "s": 57.225,
    "l": 33.922
  },
  "oklch": {
    "l": 0.57316,
    "c": 0.13716,
    "h": 131.3
  },
  "luminance": 0.19916
}

Semantic roles & 50–950 ramp

primary
#5A8825
secondary
#8153B6
accent
#47E08E
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #5A8825

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

Preview Lab → · Contrast checker → · Palette generator →

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