#508E21#508E21

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

Color values

HEX#508E21
RGBrgb(80, 142, 33)
HSLhsl(94, 62%, 34%)
HSVhsv(94, 77%, 56%)
CMYKcmyk(43.7%, 0%, 76.8%, 44.3%)
CIE-LABlab(53.12, -38.66, 48.41)
CIE-LCHlch(53.12, 61.95, 128.61°)
OKLaboklab(58.3% -0.1081 0.1083)
OKLCHoklch(58.3% 0.153 135)
XYZxyz(13.2555, 21.1605, 4.8245)
Luminance0.2116 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508E21 #5F218E
analogous
#878E21 #508E21 #218E28
triadic
#508E21 #21508E #8E2150
tetradic
#508E21 #21878E #5F218E #8E2821
square
#508E21 #21878E #5F218E #8E2821
split-complementary
#508E21 #28218E #8E2187
monochromatic
#182B0A #345C15 #508E21 #6CC02D #8CD752

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##508E21#FFFFFF#000000##000000
##508E211.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)
#938209
Deuteranopia (green-blind)
#8B7D2C
Tritanopia (blue-blind)
#4F8879
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #508e21;
/* rgb */ color: rgb(80, 142, 33);
/* oklch */ color: oklch(58.3% 0.153 135.0);
Tailwind
colors: {
  custom: {
    50: '#87af65',
    500: '#508e21',
    950: '#000000',
  },
}
SCSS
$custom: #508e21;
$custom-light: #87af65;
$custom-dark: #000000;
JSON
{
  "hex": "#508e21",
  "rgb": {
    "r": 80,
    "g": 142,
    "b": 33
  },
  "hsl": {
    "h": 94.128,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.58298,
    "c": 0.15298,
    "h": 135
  },
  "luminance": 0.21161
}

Semantic roles & 50–950 ramp

primary
#508E21
secondary
#8D50BA
accent
#42E59F
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508E21

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

Preview Lab → · Contrast checker → · Palette generator →

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