#508F2C#508F2C

#508F2C is a mid, vivid yellow-green. Relative luminance 0.215; OKLCH L 58.7% C 0.147 H 136.2°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#508F2C
RGBrgb(80, 143, 44)
HSLhsl(98, 53%, 37%)
HSVhsv(98, 69%, 56%)
CMYKcmyk(44.1%, 0%, 69.2%, 43.9%)
CIE-LABlab(53.53, -38.26, 44.52)
CIE-LCHlch(53.53, 58.70, 130.67°)
OKLaboklab(58.65% -0.1062 0.1017)
OKLCHoklch(58.65% 0.147 136.2)
XYZxyz(13.5850, 21.5315, 5.8225)
Luminance0.2153 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508F2C #6B2C8F
analogous
#828F2C #508F2C #2C8F3A
triadic
#508F2C #2C508F #8F2C50
tetradic
#508F2C #2C828F #6B2C8F #8F3A2C
square
#508F2C #2C828F #6B2C8F #8F3A2C
split-complementary
#508F2C #3A2C8F #8F2C82
monochromatic
#1C310F #36601E #508F2C #6ABE3A #8CD066

Accessibility & contrast

On white

3.96
#508F2C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#508F2C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508F2C
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508F2C#FFFFFF#000000##000000
##508F2C1.003.965.315.31
#FFFFFF3.961.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#94831E
Deuteranopia (green-blind)
#8B7E35
Tritanopia (blue-blind)
#4D8A7B
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #508f2c;
/* rgb */ color: rgb(80, 143, 44);
/* oklch */ color: oklch(58.7% 0.147 136.2);
Tailwind
colors: {
  custom: {
    50: '#86b06b',
    500: '#508f2c',
    950: '#000000',
  },
}
SCSS
$custom: #508f2c;
$custom-light: #86b06b;
$custom-dark: #000000;
JSON
{
  "hex": "#508f2c",
  "rgb": {
    "r": 80,
    "g": 143,
    "b": 44
  },
  "hsl": {
    "h": 98.182,
    "s": 52.941,
    "l": 36.667
  },
  "oklch": {
    "l": 0.58652,
    "c": 0.14706,
    "h": 136.2
  },
  "luminance": 0.21532
}

Semantic roles & 50–950 ramp

primary
#508F2C
secondary
#9761B6
accent
#4BDCA8
background
#F8FAF6
surface
#F0F5EB
border
#CBCFC6
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #508F2C

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

Preview Lab → · Contrast checker → · Palette generator →

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