#508E28#508E28

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

Color values

HEX#508E28
RGBrgb(80, 142, 40)
HSLhsl(96, 56%, 36%)
HSVhsv(96, 72%, 56%)
CMYKcmyk(43.7%, 0%, 71.8%, 44.3%)
CIE-LABlab(53.17, -38.16, 45.80)
CIE-LCHlch(53.17, 59.61, 129.80°)
OKLaboklab(58.35% -0.1062 0.1038)
OKLCHoklch(58.35% 0.149 135.7)
XYZxyz(13.3639, 21.2039, 5.3957)
Luminance0.2120 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508E28 #66288E
analogous
#838E28 #508E28 #288E33
triadic
#508E28 #28508E #8E2850
tetradic
#508E28 #28838E #66288E #8E3328
square
#508E28 #28838E #66288E #8E3328
split-complementary
#508E28 #33288E #8E2883
monochromatic
#1A2F0D #355E1B #508E28 #6BBE35 #8CD25F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##508E28#FFFFFF#000000##000000
##508E281.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)
#938218
Deuteranopia (green-blind)
#8B7D31
Tritanopia (blue-blind)
#4E897A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #508e28;
/* rgb */ color: rgb(80, 142, 40);
/* oklch */ color: oklch(58.4% 0.149 135.7);
Tailwind
colors: {
  custom: {
    50: '#86af68',
    500: '#508e28',
    950: '#000000',
  },
}
SCSS
$custom: #508e28;
$custom-light: #86af68;
$custom-dark: #000000;
JSON
{
  "hex": "#508e28",
  "rgb": {
    "r": 80,
    "g": 142,
    "b": 40
  },
  "hsl": {
    "h": 96.471,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.58352,
    "c": 0.14855,
    "h": 135.7
  },
  "luminance": 0.21205
}

Semantic roles & 50–950 ramp

primary
#508E28
secondary
#935BB7
accent
#48DFA4
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508E28

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

Preview Lab → · Contrast checker → · Palette generator →

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