#508F23#508F23

#508F23 is a mid, vivid yellow-green. Relative luminance 0.215; OKLCH L 58.6% C 0.153 H 135.3°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#508F23
RGBrgb(80, 143, 35)
HSLhsl(95, 61%, 35%)
HSVhsv(95, 76%, 56%)
CMYKcmyk(44.1%, 0%, 75.5%, 43.9%)
CIE-LABlab(53.46, -38.95, 48.02)
CIE-LCHlch(53.46, 61.83, 129.05°)
OKLaboklab(58.58% -0.1087 0.1077)
OKLCHoklch(58.58% 0.153 135.3)
XYZxyz(13.4338, 21.4710, 5.0262)
Luminance0.2147 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508F23 #62238F
analogous
#868F23 #508F23 #238F2C
triadic
#508F23 #23508F #8F2350
tetradic
#508F23 #23868F #62238F #8F2C23
square
#508F23 #23868F #62238F #8F2C23
split-complementary
#508F23 #2C238F #8F2386
monochromatic
#192D0B #345E17 #508F23 #6CC02F #8CD657

Accessibility & contrast

On white

3.97
#508F23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#508F23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508F23
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508F23#FFFFFF#000000##000000
##508F231.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#94830D
Deuteranopia (green-blind)
#8C7E2E
Tritanopia (blue-blind)
#4E897A
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #508f23;
/* rgb */ color: rgb(80, 143, 35);
/* oklch */ color: oklch(58.6% 0.153 135.3);
Tailwind
colors: {
  custom: {
    50: '#87b066',
    500: '#508f23',
    950: '#000000',
  },
}
SCSS
$custom: #508f23;
$custom-light: #87b066;
$custom-dark: #000000;
JSON
{
  "hex": "#508f23",
  "rgb": {
    "r": 80,
    "g": 143,
    "b": 35
  },
  "hsl": {
    "h": 95,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.58578,
    "c": 0.15308,
    "h": 135.3
  },
  "luminance": 0.21472
}

Semantic roles & 50–950 ramp

primary
#508F23
secondary
#8F54BA
accent
#44E4A1
background
#F8FAF6
surface
#F0F5EB
border
#CBCFC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508F23

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

Preview Lab → · Contrast checker → · Palette generator →

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