#508E22#508E22

#508E22 is a mid, vivid yellow-green. Relative luminance 0.212; OKLCH L 58.3% C 0.152 H 135.1°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#508E22
RGBrgb(80, 142, 34)
HSLhsl(94, 61%, 35%)
HSVhsv(94, 76%, 56%)
CMYKcmyk(43.7%, 0%, 76.1%, 44.3%)
CIE-LABlab(53.13, -38.59, 48.06)
CIE-LCHlch(53.13, 61.63, 128.77°)
OKLaboklab(58.3% -0.1078 0.1077)
OKLCHoklch(58.3% 0.152 135.1)
XYZxyz(13.2697, 21.1662, 4.8993)
Luminance0.2117 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508E22 #60228E
analogous
#868E22 #508E22 #228E2A
triadic
#508E22 #22508E #8E2250
tetradic
#508E22 #22868E #60228E #8E2A22
square
#508E22 #22868E #60228E #8E2A22
split-complementary
#508E22 #2A228E #8E2286
monochromatic
#182B0A #345D16 #508E22 #6CBF2E #8CD654

Accessibility & contrast

On white

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

On black

5.23
#508E22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508E22
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508E22#FFFFFF#000000##000000
##508E221.004.015.235.23
#FFFFFF4.011.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#93820B
Deuteranopia (green-blind)
#8B7D2D
Tritanopia (blue-blind)
#4E8879
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #508e22;
/* rgb */ color: rgb(80, 142, 34);
/* oklch */ color: oklch(58.3% 0.152 135.1);
Tailwind
colors: {
  custom: {
    50: '#87af65',
    500: '#508e22',
    950: '#000000',
  },
}
SCSS
$custom: #508e22;
$custom-light: #87af65;
$custom-dark: #000000;
JSON
{
  "hex": "#508e22",
  "rgb": {
    "r": 80,
    "g": 142,
    "b": 34
  },
  "hsl": {
    "h": 94.444,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.58305,
    "c": 0.15239,
    "h": 135.1
  },
  "luminance": 0.21167
}

Semantic roles & 50–950 ramp

primary
#508E22
secondary
#8E52BA
accent
#43E4A0
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508E22

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

Preview Lab → · Contrast checker → · Palette generator →

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