#508C2F#508C2F

#508C2F is a mid, vivid yellow-green. Relative luminance 0.207; OKLCH L 57.9% C 0.141 H 136.3°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#508C2F
RGBrgb(80, 140, 47)
HSLhsl(99, 50%, 37%)
HSVhsv(99, 66%, 55%)
CMYKcmyk(42.9%, 0%, 66.4%, 45.1%)
CIE-LABlab(52.58, -36.69, 42.21)
CIE-LCHlch(52.58, 55.93, 131.00°)
OKLaboklab(57.89% -0.1017 0.0972)
OKLCHoklch(57.89% 0.141 136.3)
XYZxyz(13.1991, 20.6661, 5.9823)
Luminance0.2067 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508C2F #6B2F8C
analogous
#7F8C2F #508C2F #2F8C3D
triadic
#508C2F #2F508C #8C2F50
tetradic
#508C2F #2F7F8C #6B2F8C #8C3D2F
square
#508C2F #2F7F8C #6B2F8C #8C3D2F
split-complementary
#508C2F #3D2F8C #8C2F7F
monochromatic
#1C3010 #365E20 #508C2F #6ABA3E #8CCD69

Accessibility & contrast

On white

4.09
#508C2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#508C2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508C2F
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508C2F#FFFFFF#000000##000000
##508C2F1.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#918123
Deuteranopia (green-blind)
#897C37
Tritanopia (blue-blind)
#4E8779
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #508c2f;
/* rgb */ color: rgb(80, 140, 47);
/* oklch */ color: oklch(57.9% 0.141 136.3);
Tailwind
colors: {
  custom: {
    50: '#86ae6c',
    500: '#508c2f',
    950: '#000000',
  },
}
SCSS
$custom: #508c2f;
$custom-light: #86ae6c;
$custom-dark: #000000;
JSON
{
  "hex": "#508c2f",
  "rgb": {
    "r": 80,
    "g": 140,
    "b": 47
  },
  "hsl": {
    "h": 98.71,
    "s": 49.733,
    "l": 36.667
  },
  "oklch": {
    "l": 0.57887,
    "c": 0.14071,
    "h": 136.3
  },
  "luminance": 0.20667
}

Semantic roles & 50–950 ramp

primary
#508C2F
secondary
#9763B4
accent
#4FD9A8
background
#F8FAF6
surface
#F0F4EC
border
#CBCEC7
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #508C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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