#508D2C#508D2C

#508D2C is a mid, vivid yellow-green. Relative luminance 0.209; OKLCH L 58.1% C 0.144 H 136.0°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#508D2C
RGBrgb(80, 141, 44)
HSLhsl(98, 52%, 36%)
HSVhsv(98, 69%, 55%)
CMYKcmyk(43.3%, 0%, 68.8%, 44.7%)
CIE-LABlab(52.88, -37.40, 43.84)
CIE-LCHlch(52.88, 57.62, 130.46°)
OKLaboklab(58.12% -0.1039 0.1003)
OKLCHoklch(58.12% 0.144 136)
XYZxyz(13.2874, 20.9363, 5.7234)
Luminance0.2094 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508D2C #692C8D
analogous
#818D2C #508D2C #2C8D39
triadic
#508D2C #2C508D #8D2C50
tetradic
#508D2C #2C818D #692C8D #8D392C
square
#508D2C #2C818D #692C8D #8D392C
split-complementary
#508D2C #392C8D #8D2C81
monochromatic
#1B300F #365E1D #508D2C #6ABC3B #8CCF65

Accessibility & contrast

On white

4.05
#508D2C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#508D2C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508D2C
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508D2C#FFFFFF#000000##000000
##508D2C1.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#92811F
Deuteranopia (green-blind)
#8A7C34
Tritanopia (blue-blind)
#4E8879
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #508d2c;
/* rgb */ color: rgb(80, 141, 44);
/* oklch */ color: oklch(58.1% 0.144 136.0);
Tailwind
colors: {
  custom: {
    50: '#86af6a',
    500: '#508d2c',
    950: '#000000',
  },
}
SCSS
$custom: #508d2c;
$custom-light: #86af6a;
$custom-dark: #000000;
JSON
{
  "hex": "#508d2c",
  "rgb": {
    "r": 80,
    "g": 141,
    "b": 44
  },
  "hsl": {
    "h": 97.732,
    "s": 52.432,
    "l": 36.275
  },
  "oklch": {
    "l": 0.58123,
    "c": 0.14437,
    "h": 136
  },
  "luminance": 0.20937
}

Semantic roles & 50–950 ramp

primary
#508D2C
secondary
#9560B5
accent
#4CDCA6
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #508D2C

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

Preview Lab → · Contrast checker → · Palette generator →

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