#508A25#508A25

#508A25 is a mid, vivid yellow-green. Relative luminance 0.200; OKLCH L 57.3% C 0.145 H 134.8°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#508A25
RGBrgb(80, 138, 37)
HSLhsl(94, 58%, 34%)
HSVhsv(94, 73%, 54%)
CMYKcmyk(42%, 0%, 73.2%, 45.9%)
CIE-LABlab(51.85, -36.65, 45.65)
CIE-LCHlch(51.85, 58.54, 128.76°)
OKLaboklab(57.27% -0.1024 0.1031)
OKLCHoklch(57.27% 0.145 134.8)
XYZxyz(12.7304, 20.0153, 4.9425)
Luminance0.2002 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508A25 #5F258A
analogous
#838A25 #508A25 #258A2C
triadic
#508A25 #25508A #8A2550
tetradic
#508A25 #25838A #5F258A #8A2C25
square
#508A25 #25838A #5F258A #8A2C25
split-complementary
#508A25 #2C258A #8A2583
monochromatic
#18290B #345A18 #508A25 #6CBA32 #8CD257

Accessibility & contrast

On white

4.20
#508A25 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#508A25 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508A25
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508A25#FFFFFF#000000##000000
##508A251.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F14
Deuteranopia (green-blind)
#877A2F
Tritanopia (blue-blind)
#4F8576
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #508a25;
/* rgb */ color: rgb(80, 138, 37);
/* oklch */ color: oklch(57.3% 0.145 134.8);
Tailwind
colors: {
  custom: {
    50: '#86ac66',
    500: '#508a25',
    950: '#000000',
  },
}
SCSS
$custom: #508a25;
$custom-light: #86ac66;
$custom-dark: #000000;
JSON
{
  "hex": "#508a25",
  "rgb": {
    "r": 80,
    "g": 138,
    "b": 37
  },
  "hsl": {
    "h": 94.455,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.57266,
    "c": 0.14529,
    "h": 134.8
  },
  "luminance": 0.20016
}

Semantic roles & 50–950 ramp

primary
#508A25
secondary
#8D54B7
accent
#47E19F
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508A25

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

Preview Lab → · Contrast checker → · Palette generator →

#508A25 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva