#508C2B#508C2B

#508C2B is a mid, vivid yellow-green. Relative luminance 0.206; OKLCH L 57.8% C 0.144 H 135.8°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#508C2B
RGBrgb(80, 140, 43)
HSLhsl(97, 53%, 36%)
HSVhsv(97, 69%, 55%)
CMYKcmyk(42.9%, 0%, 69.3%, 45.1%)
CIE-LABlab(52.55, -37.05, 43.91)
CIE-LCHlch(52.55, 57.45, 130.15°)
OKLaboklab(57.85% -0.103 0.1003)
OKLCHoklch(57.85% 0.144 135.8)
XYZxyz(13.1221, 20.6353, 5.5766)
Luminance0.2064 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508C2B #672B8C
analogous
#808C2B #508C2B #2B8C36
triadic
#508C2B #2B508C #8C2B50
tetradic
#508C2B #2B808C #672B8C #8C362B
square
#508C2B #2B808C #672B8C #8C362B
split-complementary
#508C2B #362B8C #8C2B80
monochromatic
#1A2E0E #355D1D #508C2B #6BBB39 #8CCF62

Accessibility & contrast

On white

4.10
#508C2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##508C2B#FFFFFF#000000##000000
##508C2B1.004.105.135.13
#FFFFFF4.101.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#91811D
Deuteranopia (green-blind)
#897C33
Tritanopia (blue-blind)
#4E8778
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #508c2b;
/* rgb */ color: rgb(80, 140, 43);
/* oklch */ color: oklch(57.8% 0.144 135.8);
Tailwind
colors: {
  custom: {
    50: '#86ae6a',
    500: '#508c2b',
    950: '#000000',
  },
}
SCSS
$custom: #508c2b;
$custom-light: #86ae6a;
$custom-dark: #000000;
JSON
{
  "hex": "#508c2b",
  "rgb": {
    "r": 80,
    "g": 140,
    "b": 43
  },
  "hsl": {
    "h": 97.113,
    "s": 53.005,
    "l": 35.882
  },
  "oklch": {
    "l": 0.57848,
    "c": 0.14375,
    "h": 135.8
  },
  "luminance": 0.20636
}

Semantic roles & 50–950 ramp

primary
#508C2B
secondary
#945EB5
accent
#4BDCA5
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #508C2B

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

Preview Lab → · Contrast checker → · Palette generator →

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