#508E2A#508E2A

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

Color values

HEX#508E2A
RGBrgb(80, 142, 42)
HSLhsl(97, 54%, 36%)
HSVhsv(97, 70%, 56%)
CMYKcmyk(43.7%, 0%, 70.4%, 44.3%)
CIE-LABlab(53.19, -38.00, 45.00)
CIE-LCHlch(53.19, 58.90, 130.18°)
OKLaboklab(58.37% -0.1056 0.1024)
OKLCHoklch(58.37% 0.147 135.9)
XYZxyz(13.3988, 21.2179, 5.5795)
Luminance0.2122 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508E2A #682A8E
analogous
#828E2A #508E2A #2A8E36
triadic
#508E2A #2A508E #8E2A50
tetradic
#508E2A #2A828E #682A8E #8E362A
square
#508E2A #2A828E #682A8E #8E362A
split-complementary
#508E2A #362A8E #8E2A82
monochromatic
#1B300E #355F1C #508E2A #6BBD38 #8CD162

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##508E2A#FFFFFF#000000##000000
##508E2A1.004.005.245.24
#FFFFFF4.001.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #508e2a;
/* rgb */ color: rgb(80, 142, 42);
/* oklch */ color: oklch(58.4% 0.147 135.9);
Tailwind
colors: {
  custom: {
    50: '#86af69',
    500: '#508e2a',
    950: '#000000',
  },
}
SCSS
$custom: #508e2a;
$custom-light: #86af69;
$custom-dark: #000000;
JSON
{
  "hex": "#508e2a",
  "rgb": {
    "r": 80,
    "g": 142,
    "b": 42
  },
  "hsl": {
    "h": 97.2,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.58369,
    "c": 0.14716,
    "h": 135.9
  },
  "luminance": 0.21219
}

Semantic roles & 50–950 ramp

primary
#508E2A
secondary
#955DB6
accent
#4ADEA6
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #508E2A

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

Preview Lab → · Contrast checker → · Palette generator →

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