#508F2F#508F2F

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

Color values

HEX#508F2F
RGBrgb(80, 143, 47)
HSLhsl(99, 51%, 37%)
HSVhsv(99, 67%, 56%)
CMYKcmyk(44.1%, 0%, 67.1%, 43.9%)
CIE-LABlab(53.55, -37.99, 43.26)
CIE-LCHlch(53.55, 57.58, 131.29°)
OKLaboklab(58.68% -0.1053 0.0994)
OKLCHoklch(58.68% 0.145 136.6)
XYZxyz(13.6434, 21.5548, 6.1304)
Luminance0.2156 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508F2F #6E2F8F
analogous
#808F2F #508F2F #2F8F3E
triadic
#508F2F #2F508F #8F2F50
tetradic
#508F2F #2F808F #6E2F8F #8F3E2F
square
#508F2F #2F808F #6E2F8F #8F3E2F
split-complementary
#508F2F #3E2F8F #8F2F80
monochromatic
#1C3311 #366120 #508F2F #6ABD3E #8DCE6A

Accessibility & contrast

On white

3.95
#508F2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##508F2F#FFFFFF#000000##000000
##508F2F1.003.955.315.31
#FFFFFF3.951.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#948322
Deuteranopia (green-blind)
#8B7E37
Tritanopia (blue-blind)
#4D8A7B
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #508f2f;
/* rgb */ color: rgb(80, 143, 47);
/* oklch */ color: oklch(58.7% 0.145 136.6);
Tailwind
colors: {
  custom: {
    50: '#86b06c',
    500: '#508f2f',
    950: '#000000',
  },
}
SCSS
$custom: #508f2f;
$custom-light: #86b06c;
$custom-dark: #000000;
JSON
{
  "hex": "#508f2f",
  "rgb": {
    "r": 80,
    "g": 143,
    "b": 47
  },
  "hsl": {
    "h": 99.375,
    "s": 50.526,
    "l": 37.255
  },
  "oklch": {
    "l": 0.58681,
    "c": 0.14481,
    "h": 136.6
  },
  "luminance": 0.21556
}

Semantic roles & 50–950 ramp

primary
#508F2F
secondary
#9A65B5
accent
#4EDAAA
background
#F8FAF6
surface
#F0F5EC
border
#CBCFC7
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #508F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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