#508C21#508C21

#508C21 is a mid, vivid yellow-green. Relative luminance 0.206; OKLCH L 57.8% C 0.150 H 134.7°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#508C21
RGBrgb(80, 140, 33)
HSLhsl(94, 62%, 34%)
HSVhsv(94, 76%, 55%)
CMYKcmyk(42.9%, 0%, 76.4%, 45.1%)
CIE-LABlab(52.48, -37.80, 47.77)
CIE-LCHlch(52.48, 60.92, 128.35°)
OKLaboklab(57.77% -0.1058 0.1069)
OKLCHoklch(57.77% 0.15 134.7)
XYZxyz(12.9606, 20.5707, 4.7262)
Luminance0.2057 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508C21 #5D218C
analogous
#868C21 #508C21 #218C28
triadic
#508C21 #21508C #8C2150
tetradic
#508C21 #21868C #5D218C #8C2821
square
#508C21 #21868C #5D218C #8C2821
split-complementary
#508C21 #28218C #8C2186
monochromatic
#17290A #345A15 #508C21 #6CBE2D #8CD651

Accessibility & contrast

On white

4.11
#508C21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#508C21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508C21
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508C21#FFFFFF#000000##000000
##508C211.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#91800A
Deuteranopia (green-blind)
#897B2C
Tritanopia (blue-blind)
#4F8678
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #508c21;
/* rgb */ color: rgb(80, 140, 33);
/* oklch */ color: oklch(57.8% 0.150 134.7);
Tailwind
colors: {
  custom: {
    50: '#87ae64',
    500: '#508c21',
    950: '#000000',
  },
}
SCSS
$custom: #508c21;
$custom-light: #87ae64;
$custom-dark: #000000;
JSON
{
  "hex": "#508c21",
  "rgb": {
    "r": 80,
    "g": 140,
    "b": 33
  },
  "hsl": {
    "h": 93.645,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.57767,
    "c": 0.15041,
    "h": 134.7
  },
  "luminance": 0.20571
}

Semantic roles & 50–950 ramp

primary
#508C21
secondary
#8B4FB9
accent
#43E59E
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508C21

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

Preview Lab → · Contrast checker → · Palette generator →

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