#508E2D#508E2D

#508E2D is a mid, vivid yellow-green. Relative luminance 0.212; OKLCH L 58.4% C 0.145 H 136.3°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#508E2D
RGBrgb(80, 142, 45)
HSLhsl(98, 52%, 37%)
HSVhsv(98, 68%, 56%)
CMYKcmyk(43.7%, 0%, 68.3%, 44.3%)
CIE-LABlab(53.21, -37.74, 43.76)
CIE-LCHlch(53.21, 57.79, 130.77°)
OKLaboklab(58.4% -0.1047 0.1002)
OKLCHoklch(58.4% 0.145 136.3)
XYZxyz(13.4546, 21.2402, 5.8729)
Luminance0.2124 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508E2D #6B2D8E
analogous
#818E2D #508E2D #2D8E3B
triadic
#508E2D #2D508E #8E2D50
tetradic
#508E2D #2D818E #6B2D8E #8E3B2D
square
#508E2D #2D818E #6B2D8E #8E3B2D
split-complementary
#508E2D #3B2D8E #8E2D81
monochromatic
#1C3110 #36601E #508E2D #6ABC3C #8CCF67

Accessibility & contrast

On white

4.00
#508E2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#508E2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508E2D
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508E2D#FFFFFF#000000##000000
##508E2D1.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#938220
Deuteranopia (green-blind)
#8B7D35
Tritanopia (blue-blind)
#4E897A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #508e2d;
/* rgb */ color: rgb(80, 142, 45);
/* oklch */ color: oklch(58.4% 0.145 136.3);
Tailwind
colors: {
  custom: {
    50: '#86af6b',
    500: '#508e2d',
    950: '#000000',
  },
}
SCSS
$custom: #508e2d;
$custom-light: #86af6b;
$custom-dark: #000000;
JSON
{
  "hex": "#508e2d",
  "rgb": {
    "r": 80,
    "g": 142,
    "b": 45
  },
  "hsl": {
    "h": 98.351,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.58397,
    "c": 0.14497,
    "h": 136.3
  },
  "luminance": 0.21241
}

Semantic roles & 50–950 ramp

primary
#508E2D
secondary
#9761B5
accent
#4CDBA8
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #508E2D

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

Preview Lab → · Contrast checker → · Palette generator →

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