#508D25#508D25

#508D25 is a mid, vivid yellow-green. Relative luminance 0.209; OKLCH L 58.1% C 0.149 H 135.2°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#508D25
RGBrgb(80, 141, 37)
HSLhsl(95, 58%, 35%)
HSVhsv(95, 74%, 55%)
CMYKcmyk(43.3%, 0%, 73.8%, 44.7%)
CIE-LABlab(52.83, -37.95, 46.63)
CIE-LCHlch(52.83, 60.12, 129.14°)
OKLaboklab(58.06% -0.1059 0.1051)
OKLCHoklch(58.06% 0.149 135.2)
XYZxyz(13.1668, 20.8881, 5.0879)
Luminance0.2089 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508D25 #62258D
analogous
#848D25 #508D25 #258D2E
triadic
#508D25 #25508D #8D2550
tetradic
#508D25 #25848D #62258D #8D2E25
square
#508D25 #25848D #62258D #8D2E25
split-complementary
#508D25 #2E258D #8D2584
monochromatic
#192C0C #345D18 #508D25 #6CBD32 #8CD359

Accessibility & contrast

On white

4.06
#508D25 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#508D25 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508D25
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508D25#FFFFFF#000000##000000
##508D251.004.065.185.18
#FFFFFF4.061.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#928113
Deuteranopia (green-blind)
#8A7C2F
Tritanopia (blue-blind)
#4E8879
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #508d25;
/* rgb */ color: rgb(80, 141, 37);
/* oklch */ color: oklch(58.1% 0.149 135.2);
Tailwind
colors: {
  custom: {
    50: '#86af67',
    500: '#508d25',
    950: '#000000',
  },
}
SCSS
$custom: #508d25;
$custom-light: #86af67;
$custom-dark: #000000;
JSON
{
  "hex": "#508d25",
  "rgb": {
    "r": 80,
    "g": 141,
    "b": 37
  },
  "hsl": {
    "h": 95.192,
    "s": 58.427,
    "l": 34.902
  },
  "oklch": {
    "l": 0.58062,
    "c": 0.14923,
    "h": 135.2
  },
  "luminance": 0.20889
}

Semantic roles & 50–950 ramp

primary
#508D25
secondary
#8F56B8
accent
#46E2A1
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508D25

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

Preview Lab → · Contrast checker → · Palette generator →

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