#508F21#508F21

#508F21 is a mid, vivid yellow-green. Relative luminance 0.215; OKLCH L 58.6% C 0.154 H 135.1°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#508F21
RGBrgb(80, 143, 33)
HSLhsl(94, 63%, 35%)
HSVhsv(94, 77%, 56%)
CMYKcmyk(44.1%, 0%, 76.9%, 43.9%)
CIE-LABlab(53.45, -39.09, 48.72)
CIE-LCHlch(53.45, 62.46, 128.74°)
OKLaboklab(58.56% -0.1092 0.1089)
OKLCHoklch(58.56% 0.154 135.1)
XYZxyz(13.4049, 21.4594, 4.8743)
Luminance0.2146 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508F21 #60218F
analogous
#878F21 #508F21 #218F29
triadic
#508F21 #21508F #8F2150
tetradic
#508F21 #21878F #60218F #8F2921
square
#508F21 #21878F #60218F #8F2921
split-complementary
#508F21 #29218F #8F2187
monochromatic
#182C0A #345D16 #508F21 #6CC12C #8CD753

Accessibility & contrast

On white

3.97
#508F21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#508F21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508F21
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508F21#FFFFFF#000000##000000
##508F211.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#948308
Deuteranopia (green-blind)
#8C7E2C
Tritanopia (blue-blind)
#4E897A
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #508f21;
/* rgb */ color: rgb(80, 143, 33);
/* oklch */ color: oklch(58.6% 0.154 135.1);
Tailwind
colors: {
  custom: {
    50: '#87b065',
    500: '#508f21',
    950: '#000000',
  },
}
SCSS
$custom: #508f21;
$custom-light: #87b065;
$custom-dark: #000000;
JSON
{
  "hex": "#508f21",
  "rgb": {
    "r": 80,
    "g": 143,
    "b": 33
  },
  "hsl": {
    "h": 94.364,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.58564,
    "c": 0.15426,
    "h": 135.1
  },
  "luminance": 0.2146
}

Semantic roles & 50–950 ramp

primary
#508F21
secondary
#8E51BB
accent
#42E6A0
background
#F8FAF6
surface
#F0F5EB
border
#CBCFC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508F21

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

Preview Lab → · Contrast checker → · Palette generator →

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