#508B2F#508B2F

#508B2F is a mid, vivid yellow-green. Relative luminance 0.204; OKLCH L 57.6% C 0.139 H 136.2°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#508B2F
RGBrgb(80, 139, 47)
HSLhsl(98, 49%, 36%)
HSVhsv(98, 66%, 55%)
CMYKcmyk(42.4%, 0%, 66.2%, 45.5%)
CIE-LABlab(52.26, -36.25, 41.86)
CIE-LCHlch(52.26, 55.38, 130.89°)
OKLaboklab(57.62% -0.1005 0.0965)
OKLCHoklch(57.62% 0.139 136.2)
XYZxyz(13.0536, 20.3752, 5.9338)
Luminance0.2038 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508B2F #6A2F8B
analogous
#7E8B2F #508B2F #2F8B3C
triadic
#508B2F #2F508B #8B2F50
tetradic
#508B2F #2F7E8B #6A2F8B #8B3C2F
square
#508B2F #2F7E8B #6A2F8B #8B3C2F
split-complementary
#508B2F #3C2F8B #8B2F7E
monochromatic
#1B3010 #365D20 #508B2F #6AB93E #8CCC68

Accessibility & contrast

On white

4.14
#508B2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#508B2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508B2F
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508B2F#FFFFFF#000000##000000
##508B2F1.004.145.085.08
#FFFFFF4.141.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#908023
Deuteranopia (green-blind)
#887B37
Tritanopia (blue-blind)
#4E8678
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #508b2f;
/* rgb */ color: rgb(80, 139, 47);
/* oklch */ color: oklch(57.6% 0.139 136.2);
Tailwind
colors: {
  custom: {
    50: '#86ad6c',
    500: '#508b2f',
    950: '#000000',
  },
}
SCSS
$custom: #508b2f;
$custom-light: #86ad6c;
$custom-dark: #000000;
JSON
{
  "hex": "#508b2f",
  "rgb": {
    "r": 80,
    "g": 139,
    "b": 47
  },
  "hsl": {
    "h": 98.478,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.57623,
    "c": 0.13933,
    "h": 136.2
  },
  "luminance": 0.20376
}

Semantic roles & 50–950 ramp

primary
#508B2F
secondary
#9663B3
accent
#4FD9A7
background
#F8FAF6
surface
#F0F4EC
border
#CBCEC7
text
#0B1007
muted
#7C7F7A

Preview Lab

Preview with #508B2F

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

Preview Lab → · Contrast checker → · Palette generator →

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