#508E2C#508E2C

#508E2C is a mid, vivid yellow-green. Relative luminance 0.212; OKLCH L 58.4% C 0.146 H 136.1°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#508E2C
RGBrgb(80, 142, 44)
HSLhsl(98, 53%, 36%)
HSVhsv(98, 69%, 56%)
CMYKcmyk(43.7%, 0%, 69%, 44.3%)
CIE-LABlab(53.20, -37.83, 44.18)
CIE-LCHlch(53.20, 58.16, 130.57°)
OKLaboklab(58.39% -0.105 0.101)
OKLCHoklch(58.39% 0.146 136.1)
XYZxyz(13.4355, 21.2326, 5.7727)
Luminance0.2123 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508E2C #6A2C8E
analogous
#818E2C #508E2C #2C8E39
triadic
#508E2C #2C508E #8E2C50
tetradic
#508E2C #2C818E #6A2C8E #8E392C
square
#508E2C #2C818E #6A2C8E #8E392C
split-complementary
#508E2C #392C8E #8E2C81
monochromatic
#1B310F #365F1E #508E2C #6ABD3A #8CCF65

Accessibility & contrast

On white

4.00
#508E2C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#508E2C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508E2C
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508E2C#FFFFFF#000000##000000
##508E2C1.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#93821E
Deuteranopia (green-blind)
#8B7D35
Tritanopia (blue-blind)
#4E897A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #508e2c;
/* rgb */ color: rgb(80, 142, 44);
/* oklch */ color: oklch(58.4% 0.146 136.1);
Tailwind
colors: {
  custom: {
    50: '#86af6a',
    500: '#508e2c',
    950: '#000000',
  },
}
SCSS
$custom: #508e2c;
$custom-light: #86af6a;
$custom-dark: #000000;
JSON
{
  "hex": "#508e2c",
  "rgb": {
    "r": 80,
    "g": 142,
    "b": 44
  },
  "hsl": {
    "h": 97.959,
    "s": 52.688,
    "l": 36.471
  },
  "oklch": {
    "l": 0.58387,
    "c": 0.14571,
    "h": 136.1
  },
  "luminance": 0.21233
}

Semantic roles & 50–950 ramp

primary
#508E2C
secondary
#9660B6
accent
#4CDCA7
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #508E2C

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

Preview Lab → · Contrast checker → · Palette generator →

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