#508E25#508E25

#508E25 is a mid, vivid yellow-green. Relative luminance 0.212; OKLCH L 58.3% C 0.151 H 135.3°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#508E25
RGBrgb(80, 142, 37)
HSLhsl(95, 59%, 35%)
HSVhsv(95, 74%, 56%)
CMYKcmyk(43.7%, 0%, 73.9%, 44.3%)
CIE-LABlab(53.15, -38.38, 46.96)
CIE-LCHlch(53.15, 60.65, 129.26°)
OKLaboklab(58.33% -0.1071 0.1058)
OKLCHoklch(58.33% 0.151 135.3)
XYZxyz(13.3149, 21.1843, 5.1373)
Luminance0.2119 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508E25 #63258E
analogous
#848E25 #508E25 #258E2F
triadic
#508E25 #25508E #8E2550
tetradic
#508E25 #25848E #63258E #8E2F25
square
#508E25 #25848E #63258E #8E2F25
split-complementary
#508E25 #2F258E #8E2584
monochromatic
#192D0C #355D18 #508E25 #6BBF32 #8CD45A

Accessibility & contrast

On white

4.01
#508E25 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#508E25 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508E25
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508E25#FFFFFF#000000##000000
##508E251.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#938212
Deuteranopia (green-blind)
#8B7D2F
Tritanopia (blue-blind)
#4E897A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #508e25;
/* rgb */ color: rgb(80, 142, 37);
/* oklch */ color: oklch(58.3% 0.151 135.3);
Tailwind
colors: {
  custom: {
    50: '#87af67',
    500: '#508e25',
    950: '#000000',
  },
}
SCSS
$custom: #508e25;
$custom-light: #87af67;
$custom-dark: #000000;
JSON
{
  "hex": "#508e25",
  "rgb": {
    "r": 80,
    "g": 142,
    "b": 37
  },
  "hsl": {
    "h": 95.429,
    "s": 58.659,
    "l": 35.098
  },
  "oklch": {
    "l": 0.58328,
    "c": 0.15054,
    "h": 135.3
  },
  "luminance": 0.21185
}

Semantic roles & 50–950 ramp

primary
#508E25
secondary
#9056B9
accent
#46E2A2
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508E25

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

Preview Lab → · Contrast checker → · Palette generator →

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