#508B21#508B21

#508B21 is a mid, vivid yellow-green. Relative luminance 0.203; OKLCH L 57.5% C 0.149 H 134.6°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#508B21
RGBrgb(80, 139, 33)
HSLhsl(93, 62%, 34%)
HSVhsv(93, 76%, 55%)
CMYKcmyk(42.4%, 0%, 76.3%, 45.5%)
CIE-LABlab(52.15, -37.37, 47.46)
CIE-LCHlch(52.15, 60.40, 128.22°)
OKLaboklab(57.5% -0.1046 0.1063)
OKLCHoklch(57.5% 0.149 134.6)
XYZxyz(12.8151, 20.2798, 4.6777)
Luminance0.2028 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508B21 #5C218B
analogous
#858B21 #508B21 #218B27
triadic
#508B21 #21508B #8B2150
tetradic
#508B21 #21858B #5C218B #8B2721
square
#508B21 #21858B #5C218B #8B2721
split-complementary
#508B21 #27218B #8B2185
monochromatic
#17280A #345A15 #508B21 #6CBC2D #8CD651

Accessibility & contrast

On white

4.15
#508B21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#508B21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508B21
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508B21#FFFFFF#000000##000000
##508B211.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F0B
Deuteranopia (green-blind)
#897B2C
Tritanopia (blue-blind)
#4F8577
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #508b21;
/* rgb */ color: rgb(80, 139, 33);
/* oklch */ color: oklch(57.5% 0.149 134.6);
Tailwind
colors: {
  custom: {
    50: '#86ad64',
    500: '#508b21',
    950: '#000000',
  },
}
SCSS
$custom: #508b21;
$custom-light: #86ad64;
$custom-dark: #000000;
JSON
{
  "hex": "#508b21",
  "rgb": {
    "r": 80,
    "g": 139,
    "b": 33
  },
  "hsl": {
    "h": 93.396,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.57501,
    "c": 0.14912,
    "h": 134.6
  },
  "luminance": 0.20281
}

Semantic roles & 50–950 ramp

primary
#508B21
secondary
#8A4FB9
accent
#43E59D
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508B21

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

Preview Lab → · Contrast checker → · Palette generator →

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