#508C2E#508C2E

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

Color values

HEX#508C2E
RGBrgb(80, 140, 46)
HSLhsl(98, 51%, 36%)
HSVhsv(98, 67%, 55%)
CMYKcmyk(42.9%, 0%, 67.1%, 45.1%)
CIE-LABlab(52.57, -36.78, 42.65)
CIE-LCHlch(52.57, 56.32, 130.78°)
OKLaboklab(57.88% -0.102 0.098)
OKLCHoklch(57.88% 0.141 136.2)
XYZxyz(13.1791, 20.6582, 5.8772)
Luminance0.2066 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508C2E #6A2E8C
analogous
#7F8C2E #508C2E #2E8C3B
triadic
#508C2E #2E508C #8C2E50
tetradic
#508C2E #2E7F8C #6A2E8C #8C3B2E
square
#508C2E #2E7F8C #6A2E8C #8C3B2E
split-complementary
#508C2E #3B2E8C #8C2E7F
monochromatic
#1B3010 #365E1F #508C2E #6ABA3D #8CCD67

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##508C2E#FFFFFF#000000##000000
##508C2E1.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)
#918122
Deuteranopia (green-blind)
#897C36
Tritanopia (blue-blind)
#4E8779
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #508c2e;
/* rgb */ color: rgb(80, 140, 46);
/* oklch */ color: oklch(57.9% 0.141 136.2);
Tailwind
colors: {
  custom: {
    50: '#86ae6b',
    500: '#508c2e',
    950: '#000000',
  },
}
SCSS
$custom: #508c2e;
$custom-light: #86ae6b;
$custom-dark: #000000;
JSON
{
  "hex": "#508c2e",
  "rgb": {
    "r": 80,
    "g": 140,
    "b": 46
  },
  "hsl": {
    "h": 98.298,
    "s": 50.538,
    "l": 36.471
  },
  "oklch": {
    "l": 0.57877,
    "c": 0.14149,
    "h": 136.2
  },
  "luminance": 0.20659
}

Semantic roles & 50–950 ramp

primary
#508C2E
secondary
#9662B4
accent
#4EDAA7
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #508C2E

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

Preview Lab → · Contrast checker → · Palette generator →

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