#508C23#508C23

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

Color values

HEX#508C23
RGBrgb(80, 140, 35)
HSLhsl(94, 60%, 34%)
HSVhsv(94, 75%, 55%)
CMYKcmyk(42.9%, 0%, 75%, 45.1%)
CIE-LABlab(52.49, -37.67, 47.05)
CIE-LCHlch(52.49, 60.27, 128.68°)
OKLaboklab(57.78% -0.1053 0.1057)
OKLCHoklch(57.78% 0.149 134.9)
XYZxyz(12.9894, 20.5823, 4.8781)
Luminance0.2058 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508C23 #5F238C
analogous
#858C23 #508C23 #238C2B
triadic
#508C23 #23508C #8C2350
tetradic
#508C23 #23858C #5F238C #8C2B23
square
#508C23 #23858C #5F238C #8C2B23
split-complementary
#508C23 #2B238C #8C2385
monochromatic
#182A0B #345B17 #508C23 #6CBD2F #8CD455

Accessibility & contrast

On white

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

On black

5.12
#508C23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508C23
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508C23#FFFFFF#000000##000000
##508C231.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#91800F
Deuteranopia (green-blind)
#897B2D
Tritanopia (blue-blind)
#4F8678
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #508c23;
/* rgb */ color: rgb(80, 140, 35);
/* oklch */ color: oklch(57.8% 0.149 134.9);
Tailwind
colors: {
  custom: {
    50: '#86ae65',
    500: '#508c23',
    950: '#000000',
  },
}
SCSS
$custom: #508c23;
$custom-light: #86ae65;
$custom-dark: #000000;
JSON
{
  "hex": "#508c23",
  "rgb": {
    "r": 80,
    "g": 140,
    "b": 35
  },
  "hsl": {
    "h": 94.286,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.57781,
    "c": 0.1492,
    "h": 134.9
  },
  "luminance": 0.20583
}

Semantic roles & 50–950 ramp

primary
#508C23
secondary
#8D52B8
accent
#45E39F
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508C23

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

Preview Lab → · Contrast checker → · Palette generator →

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