#508B23#508B23

#508B23 is a mid, vivid yellow-green. Relative luminance 0.203; OKLCH L 57.5% C 0.148 H 134.7°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#508B23
RGBrgb(80, 139, 35)
HSLhsl(94, 60%, 34%)
HSVhsv(94, 75%, 55%)
CMYKcmyk(42.4%, 0%, 74.8%, 45.5%)
CIE-LABlab(52.17, -37.23, 46.73)
CIE-LCHlch(52.17, 59.75, 128.55°)
OKLaboklab(57.52% -0.1041 0.105)
OKLCHoklch(57.52% 0.148 134.7)
XYZxyz(12.8440, 20.2914, 4.8296)
Luminance0.2029 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508B23 #5E238B
analogous
#848B23 #508B23 #238B2A
triadic
#508B23 #23508B #8B2350
tetradic
#508B23 #23848B #5E238B #8B2A23
square
#508B23 #23848B #5E238B #8B2A23
split-complementary
#508B23 #2A238B #8B2384
monochromatic
#18290A #345A17 #508B23 #6CBC2F #8CD454

Accessibility & contrast

On white

4.15
#508B23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#508B23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508B23
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508B23#FFFFFF#000000##000000
##508B231.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F0F
Deuteranopia (green-blind)
#887B2D
Tritanopia (blue-blind)
#4F8677
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #508b23;
/* rgb */ color: rgb(80, 139, 35);
/* oklch */ color: oklch(57.5% 0.148 134.7);
Tailwind
colors: {
  custom: {
    50: '#86ad65',
    500: '#508b23',
    950: '#000000',
  },
}
SCSS
$custom: #508b23;
$custom-light: #86ad65;
$custom-dark: #000000;
JSON
{
  "hex": "#508b23",
  "rgb": {
    "r": 80,
    "g": 139,
    "b": 35
  },
  "hsl": {
    "h": 94.038,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.57516,
    "c": 0.14789,
    "h": 134.7
  },
  "luminance": 0.20292
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #508B23

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

Preview Lab → · Contrast checker → · Palette generator →

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