#508C2D#508C2D

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

Color values

HEX#508C2D
RGBrgb(80, 140, 45)
HSLhsl(98, 51%, 36%)
HSVhsv(98, 68%, 55%)
CMYKcmyk(42.9%, 0%, 67.9%, 45.1%)
CIE-LABlab(52.56, -36.87, 43.07)
CIE-LCHlch(52.56, 56.70, 130.56°)
OKLaboklab(57.87% -0.1024 0.0988)
OKLCHoklch(57.87% 0.142 136)
XYZxyz(13.1597, 20.6504, 5.7746)
Luminance0.2065 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508C2D #692D8C
analogous
#808C2D #508C2D #2D8C3A
triadic
#508C2D #2D508C #8C2D50
tetradic
#508C2D #2D808C #692D8C #8C3A2D
square
#508C2D #2D808C #692D8C #8C3A2D
split-complementary
#508C2D #3A2D8C #8C2D80
monochromatic
#1B2F0F #365E1E #508C2D #6ABA3C #8CCE66

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##508C2D#FFFFFF#000000##000000
##508C2D1.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)
#918120
Deuteranopia (green-blind)
#897C35
Tritanopia (blue-blind)
#4E8779
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #508c2d;
/* rgb */ color: rgb(80, 140, 45);
/* oklch */ color: oklch(57.9% 0.142 136.0);
Tailwind
colors: {
  custom: {
    50: '#86ae6b',
    500: '#508c2d',
    950: '#000000',
  },
}
SCSS
$custom: #508c2d;
$custom-light: #86ae6b;
$custom-dark: #000000;
JSON
{
  "hex": "#508c2d",
  "rgb": {
    "r": 80,
    "g": 140,
    "b": 45
  },
  "hsl": {
    "h": 97.895,
    "s": 51.351,
    "l": 36.275
  },
  "oklch": {
    "l": 0.57867,
    "c": 0.14226,
    "h": 136
  },
  "luminance": 0.20651
}

Semantic roles & 50–950 ramp

primary
#508C2D
secondary
#9560B4
accent
#4DDBA7
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #508C2D

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

Preview Lab → · Contrast checker → · Palette generator →

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