#5A8829#5A8829

#5A8829 is a mid, vivid yellow-green. Relative luminance 0.199; OKLCH L 57.4% C 0.134 H 131.7°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#5A8829
RGBrgb(90, 136, 41)
HSLhsl(89, 54%, 35%)
HSVhsv(89, 70%, 53%)
CMYKcmyk(33.8%, 0%, 69.9%, 46.7%)
CIE-LABlab(51.77, -31.75, 44.10)
CIE-LCHlch(51.77, 54.34, 125.75°)
OKLaboklab(57.35% -0.0894 0.1003)
OKLCHoklch(57.35% 0.134 131.7)
XYZxyz(13.4207, 19.9416, 5.2394)
Luminance0.1994 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8829 #572988
analogous
#888729 #5A8829 #2A8829
triadic
#5A8829 #295A88 #88295A
tetradic
#5A8829 #298887 #572988 #88292A
square
#5A8829 #298887 #572988 #88292A
split-complementary
#5A8829 #292A88 #872988
monochromatic
#1C2A0D #3B591B #5A8829 #79B737 #97CE5D

Accessibility & contrast

On white

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

On black

4.99
#5A8829 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8829
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8829#FFFFFF#000000##000000
##5A88291.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E1B
Deuteranopia (green-blind)
#887A31
Tritanopia (blue-blind)
#5B8275
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5a8829;
/* rgb */ color: rgb(90, 136, 41);
/* oklch */ color: oklch(57.4% 0.134 131.7);
Tailwind
colors: {
  custom: {
    50: '#8cab68',
    500: '#5a8829',
    950: '#000000',
  },
}
SCSS
$custom: #5a8829;
$custom-light: #8cab68;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8829",
  "rgb": {
    "r": 90,
    "g": 136,
    "b": 41
  },
  "hsl": {
    "h": 89.053,
    "s": 53.672,
    "l": 34.706
  },
  "oklch": {
    "l": 0.5735,
    "c": 0.13434,
    "h": 131.7
  },
  "luminance": 0.19942
}

Semantic roles & 50–950 ramp

primary
#5A8829
secondary
#8559B4
accent
#4BDD92
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #5A8829

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

Preview Lab → · Contrast checker → · Palette generator →

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