#508128#508128

#508128 is a mid, vivid yellow-green. Relative luminance 0.176; OKLCH L 54.9% C 0.131 H 133.8°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#508128
RGBrgb(80, 129, 40)
HSLhsl(93, 53%, 33%)
HSVhsv(93, 69%, 51%)
CMYKcmyk(38%, 0%, 69%, 49.4%)
CIE-LABlab(48.96, -32.39, 41.40)
CIE-LCHlch(48.96, 52.56, 128.04°)
OKLaboklab(54.9% -0.0906 0.0946)
OKLCHoklch(54.9% 0.131 133.8)
XYZxyz(11.5413, 17.5587, 4.7881)
Luminance0.1756 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508128 #592881
analogous
#7C8128 #508128 #28812C
triadic
#508128 #285081 #812850
tetradic
#508128 #287C81 #592881 #812C28
square
#508128 #287C81 #592881 #812C28
split-complementary
#508128 #2C2881 #81287C
monochromatic
#16240B #33521A #508128 #6DB036 #8CCB58

Accessibility & contrast

On white

4.65
#508128 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#508128 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #508128
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508128#FFFFFF#000000##FFFFFF
##5081281.004.654.514.65
#FFFFFF4.651.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#86771C
Deuteranopia (green-blind)
#7F7330
Tritanopia (blue-blind)
#507C6F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #508128;
/* rgb */ color: rgb(80, 129, 40);
/* oklch */ color: oklch(54.9% 0.131 133.8);
Tailwind
colors: {
  custom: {
    50: '#85a667',
    500: '#508128',
    950: '#000000',
  },
}
SCSS
$custom: #508128;
$custom-light: #85a667;
$custom-dark: #000000;
JSON
{
  "hex": "#508128",
  "rgb": {
    "r": 80,
    "g": 129,
    "b": 40
  },
  "hsl": {
    "h": 93.034,
    "s": 52.663,
    "l": 33.137
  },
  "oklch": {
    "l": 0.54904,
    "c": 0.13096,
    "h": 133.8
  },
  "luminance": 0.17559
}

Semantic roles & 50–950 ramp

primary
#508128
secondary
#8754B0
accent
#4CDC9B
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B0F06
muted
#7C7F7A

Preview Lab

Preview with #508128

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

Preview Lab → · Contrast checker → · Palette generator →

#508128 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva