#508B28#508B28

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

Color values

HEX#508B28
RGBrgb(80, 139, 40)
HSLhsl(96, 55%, 35%)
HSVhsv(96, 71%, 55%)
CMYKcmyk(42.4%, 0%, 71.2%, 45.5%)
CIE-LABlab(52.20, -36.86, 44.80)
CIE-LCHlch(52.20, 58.01, 129.45°)
OKLaboklab(57.56% -0.1027 0.1017)
OKLCHoklch(57.56% 0.145 135.3)
XYZxyz(12.9236, 20.3232, 5.2489)
Luminance0.2032 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508B28 #63288B
analogous
#818B28 #508B28 #288B32
triadic
#508B28 #28508B #8B2850
tetradic
#508B28 #28818B #63288B #8B3228
square
#508B28 #28818B #63288B #8B3228
split-complementary
#508B28 #32288B #8B2881
monochromatic
#192C0D #355B1A #508B28 #6BBB36 #8CD05D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##508B28#FFFFFF#000000##000000
##508B281.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)
#908019
Deuteranopia (green-blind)
#887B31
Tritanopia (blue-blind)
#4E8677
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #508b28;
/* rgb */ color: rgb(80, 139, 40);
/* oklch */ color: oklch(57.6% 0.145 135.3);
Tailwind
colors: {
  custom: {
    50: '#86ad68',
    500: '#508b28',
    950: '#000000',
  },
}
SCSS
$custom: #508b28;
$custom-light: #86ad68;
$custom-dark: #000000;
JSON
{
  "hex": "#508b28",
  "rgb": {
    "r": 80,
    "g": 139,
    "b": 40
  },
  "hsl": {
    "h": 95.758,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.57556,
    "c": 0.14456,
    "h": 135.3
  },
  "luminance": 0.20324
}

Semantic roles & 50–950 ramp

primary
#508B28
secondary
#9059B6
accent
#49DFA2
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508B28

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

Preview Lab → · Contrast checker → · Palette generator →

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