#508B25#508B25

#508B25 is a mid, vivid yellow-green. Relative luminance 0.203; OKLCH L 57.5% C 0.147 H 134.9°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#508B25
RGBrgb(80, 139, 37)
HSLhsl(95, 58%, 35%)
HSVhsv(95, 73%, 55%)
CMYKcmyk(42.4%, 0%, 73.4%, 45.5%)
CIE-LABlab(52.18, -37.09, 45.98)
CIE-LCHlch(52.18, 59.07, 128.89°)
OKLaboklab(57.53% -0.1036 0.1038)
OKLCHoklch(57.53% 0.147 134.9)
XYZxyz(12.8745, 20.3036, 4.9905)
Luminance0.2030 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508B25 #60258B
analogous
#838B25 #508B25 #258B2D
triadic
#508B25 #25508B #8B2550
tetradic
#508B25 #25838B #60258B #8B2D25
square
#508B25 #25838B #60258B #8B2D25
split-complementary
#508B25 #2D258B #8B2583
monochromatic
#182A0B #345B18 #508B25 #6CBB32 #8CD358

Accessibility & contrast

On white

4.15
#508B25 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#508B25 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508B25
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508B25#FFFFFF#000000##000000
##508B251.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F13
Deuteranopia (green-blind)
#887B2F
Tritanopia (blue-blind)
#4F8677
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #508b25;
/* rgb */ color: rgb(80, 139, 37);
/* oklch */ color: oklch(57.5% 0.147 134.9);
Tailwind
colors: {
  custom: {
    50: '#86ad66',
    500: '#508b25',
    950: '#000000',
  },
}
SCSS
$custom: #508b25;
$custom-light: #86ad66;
$custom-dark: #000000;
JSON
{
  "hex": "#508b25",
  "rgb": {
    "r": 80,
    "g": 139,
    "b": 37
  },
  "hsl": {
    "h": 94.706,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.57531,
    "c": 0.1466,
    "h": 134.9
  },
  "luminance": 0.20304
}

Semantic roles & 50–950 ramp

primary
#508B25
secondary
#8E55B7
accent
#47E1A0
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508B25

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

Preview Lab → · Contrast checker → · Palette generator →

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