#508F2A#508F2A

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

Color values

HEX#508F2A
RGBrgb(80, 143, 42)
HSLhsl(97, 55%, 36%)
HSVhsv(97, 71%, 56%)
CMYKcmyk(44.1%, 0%, 70.6%, 43.9%)
CIE-LABlab(53.51, -38.43, 45.34)
CIE-LCHlch(53.51, 59.43, 130.28°)
OKLaboklab(58.63% -0.1068 0.1032)
OKLCHoklch(58.63% 0.148 136)
XYZxyz(13.5483, 21.5168, 5.6293)
Luminance0.2152 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508F2A #692A8F
analogous
#838F2A #508F2A #2A8F37
triadic
#508F2A #2A508F #8F2A50
tetradic
#508F2A #2A838F #692A8F #8F372A
square
#508F2A #2A838F #692A8F #8F372A
split-complementary
#508F2A #372A8F #8F2A83
monochromatic
#1B300E #36601C #508F2A #6ABE38 #8CD162

Accessibility & contrast

On white

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

On black

5.30
#508F2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508F2A
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508F2A#FFFFFF#000000##000000
##508F2A1.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#94831B
Deuteranopia (green-blind)
#8C7E33
Tritanopia (blue-blind)
#4E8A7B
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #508f2a;
/* rgb */ color: rgb(80, 143, 42);
/* oklch */ color: oklch(58.6% 0.148 136.0);
Tailwind
colors: {
  custom: {
    50: '#86b069',
    500: '#508f2a',
    950: '#000000',
  },
}
SCSS
$custom: #508f2a;
$custom-light: #86b069;
$custom-dark: #000000;
JSON
{
  "hex": "#508f2a",
  "rgb": {
    "r": 80,
    "g": 143,
    "b": 42
  },
  "hsl": {
    "h": 97.426,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.58634,
    "c": 0.14849,
    "h": 136
  },
  "luminance": 0.21518
}

Semantic roles & 50–950 ramp

primary
#508F2A
secondary
#955EB7
accent
#4ADEA6
background
#F8FAF6
surface
#F0F5EB
border
#CBCFC6
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #508F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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