#508E2B#508E2B

#508E2B is a mid, vivid yellow-green. Relative luminance 0.212; OKLCH L 58.4% C 0.146 H 136.0°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#508E2B
RGBrgb(80, 142, 43)
HSLhsl(98, 54%, 36%)
HSVhsv(98, 70%, 56%)
CMYKcmyk(43.7%, 0%, 69.7%, 44.3%)
CIE-LABlab(53.20, -37.91, 44.59)
CIE-LCHlch(53.20, 58.53, 130.37°)
OKLaboklab(58.38% -0.1053 0.1017)
OKLCHoklch(58.38% 0.146 136)
XYZxyz(13.4170, 21.2251, 5.6749)
Luminance0.2123 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508E2B #692B8E
analogous
#828E2B #508E2B #2B8E38
triadic
#508E2B #2B508E #8E2B50
tetradic
#508E2B #2B828E #692B8E #8E382B
square
#508E2B #2B828E #692B8E #8E382B
split-complementary
#508E2B #382B8E #8E2B82
monochromatic
#1B300F #365F1D #508E2B #6ABD39 #8CD063

Accessibility & contrast

On white

4.00
#508E2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#508E2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508E2B
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508E2B#FFFFFF#000000##000000
##508E2B1.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#93821D
Deuteranopia (green-blind)
#8B7D34
Tritanopia (blue-blind)
#4E897A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #508e2b;
/* rgb */ color: rgb(80, 142, 43);
/* oklch */ color: oklch(58.4% 0.146 136.0);
Tailwind
colors: {
  custom: {
    50: '#86af6a',
    500: '#508e2b',
    950: '#000000',
  },
}
SCSS
$custom: #508e2b;
$custom-light: #86af6a;
$custom-dark: #000000;
JSON
{
  "hex": "#508e2b",
  "rgb": {
    "r": 80,
    "g": 142,
    "b": 43
  },
  "hsl": {
    "h": 97.576,
    "s": 53.514,
    "l": 36.275
  },
  "oklch": {
    "l": 0.58378,
    "c": 0.14644,
    "h": 136
  },
  "luminance": 0.21226
}

Semantic roles & 50–950 ramp

primary
#508E2B
secondary
#955FB6
accent
#4BDDA6
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #508E2B

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

Preview Lab → · Contrast checker → · Palette generator →

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