#5A8A25#5A8A25

#5A8A25 is a mid, vivid yellow-green. Relative luminance 0.205; OKLCH L 57.8% C 0.140 H 131.7°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#5A8A25
RGBrgb(90, 138, 37)
HSLhsl(89, 58%, 34%)
HSVhsv(89, 73%, 54%)
CMYKcmyk(34.8%, 0%, 73.2%, 45.9%)
CIE-LABlab(52.38, -32.97, 46.35)
CIE-LCHlch(52.38, 56.88, 125.43°)
OKLaboklab(57.84% -0.0931 0.1044)
OKLCHoklch(57.84% 0.14 131.7)
XYZxyz(13.6387, 20.4837, 4.9850)
Luminance0.2048 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8A25 #55258A
analogous
#8A8825 #5A8A25 #288A25
triadic
#5A8A25 #255A8A #8A255A
tetradic
#5A8A25 #258A88 #55258A #8A2528
square
#5A8A25 #258A88 #55258A #8A2528
split-complementary
#5A8A25 #25288A #88258A
monochromatic
#1B290B #3B5A18 #5A8A25 #79BA32 #98D257

Accessibility & contrast

On white

4.12
#5A8A25 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#5A8A25 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8A25
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8A25#FFFFFF#000000##000000
##5A8A251.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F14
Deuteranopia (green-blind)
#897C2E
Tritanopia (blue-blind)
#5B8476
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5a8a25;
/* rgb */ color: rgb(90, 138, 37);
/* oklch */ color: oklch(57.8% 0.140 131.7);
Tailwind
colors: {
  custom: {
    50: '#8dac66',
    500: '#5a8a25',
    950: '#000000',
  },
}
SCSS
$custom: #5a8a25;
$custom-light: #8dac66;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8a25",
  "rgb": {
    "r": 90,
    "g": 138,
    "b": 37
  },
  "hsl": {
    "h": 88.515,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.57836,
    "c": 0.13984,
    "h": 131.7
  },
  "luminance": 0.20484
}

Semantic roles & 50–950 ramp

primary
#5A8A25
secondary
#8354B7
accent
#47E190
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #5A8A25

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

Preview Lab → · Contrast checker → · Palette generator →

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