#508E2F#508E2F

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

Color values

HEX#508E2F
RGBrgb(80, 142, 47)
HSLhsl(99, 50%, 37%)
HSVhsv(99, 67%, 56%)
CMYKcmyk(43.7%, 0%, 66.9%, 44.3%)
CIE-LABlab(53.23, -37.56, 42.91)
CIE-LCHlch(53.23, 57.03, 131.19°)
OKLaboklab(58.42% -0.1041 0.0987)
OKLCHoklch(58.42% 0.143 136.5)
XYZxyz(13.4940, 21.2559, 6.0806)
Luminance0.2126 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508E2F #6D2F8E
analogous
#808E2F #508E2F #2F8E3E
triadic
#508E2F #2F508E #8E2F50
tetradic
#508E2F #2F808E #6D2F8E #8E3E2F
square
#508E2F #2F808E #6D2F8E #8E3E2F
split-complementary
#508E2F #3E2F8E #8E2F80
monochromatic
#1C3211 #366020 #508E2F #6ABC3E #8CCE6A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##508E2F#FFFFFF#000000##000000
##508E2F1.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)
#938223
Deuteranopia (green-blind)
#8A7D37
Tritanopia (blue-blind)
#4D897A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #508e2f;
/* rgb */ color: rgb(80, 142, 47);
/* oklch */ color: oklch(58.4% 0.143 136.5);
Tailwind
colors: {
  custom: {
    50: '#86af6c',
    500: '#508e2f',
    950: '#000000',
  },
}
SCSS
$custom: #508e2f;
$custom-light: #86af6c;
$custom-dark: #000000;
JSON
{
  "hex": "#508e2f",
  "rgb": {
    "r": 80,
    "g": 142,
    "b": 47
  },
  "hsl": {
    "h": 99.158,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.58416,
    "c": 0.14345,
    "h": 136.5
  },
  "luminance": 0.21257
}

Semantic roles & 50–950 ramp

primary
#508E2F
secondary
#9964B5
accent
#4EDAA9
background
#F8FAF6
surface
#F0F4EC
border
#CBCEC7
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #508E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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