#508D23#508D23

#508D23 is a mid, vivid yellow-green. Relative luminance 0.209; OKLCH L 58.0% C 0.150 H 135.0°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#508D23
RGBrgb(80, 141, 35)
HSLhsl(95, 60%, 35%)
HSVhsv(95, 75%, 55%)
CMYKcmyk(43.3%, 0%, 75.2%, 44.7%)
CIE-LABlab(52.81, -38.10, 47.37)
CIE-LCHlch(52.81, 60.79, 128.81°)
OKLaboklab(58.05% -0.1064 0.1064)
OKLCHoklch(58.05% 0.15 135)
XYZxyz(13.1362, 20.8758, 4.9271)
Luminance0.2088 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508D23 #60238D
analogous
#858D23 #508D23 #238D2B
triadic
#508D23 #23508D #8D2350
tetradic
#508D23 #23858D #60238D #8D2B23
square
#508D23 #23858D #60238D #8D2B23
split-complementary
#508D23 #2B238D #8D2385
monochromatic
#182B0B #345C17 #508D23 #6CBE2F #8CD555

Accessibility & contrast

On white

4.06
#508D23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#508D23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508D23
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508D23#FFFFFF#000000##000000
##508D231.004.065.185.18
#FFFFFF4.061.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#92810E
Deuteranopia (green-blind)
#8A7C2D
Tritanopia (blue-blind)
#4F8779
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #508d23;
/* rgb */ color: rgb(80, 141, 35);
/* oklch */ color: oklch(58.0% 0.150 135.0);
Tailwind
colors: {
  custom: {
    50: '#87af66',
    500: '#508d23',
    950: '#000000',
  },
}
SCSS
$custom: #508d23;
$custom-light: #87af66;
$custom-dark: #000000;
JSON
{
  "hex": "#508d23",
  "rgb": {
    "r": 80,
    "g": 141,
    "b": 35
  },
  "hsl": {
    "h": 94.528,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.58047,
    "c": 0.15049,
    "h": 135
  },
  "luminance": 0.20877
}

Semantic roles & 50–950 ramp

primary
#508D23
secondary
#8E53B9
accent
#44E3A0
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508D23

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

Preview Lab → · Contrast checker → · Palette generator →

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