#508125#508125

#508125 is a mid, vivid yellow-green. Relative luminance 0.175; OKLCH L 54.9% C 0.133 H 133.4°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#508125
RGBrgb(80, 129, 37)
HSLhsl(92, 55%, 33%)
HSVhsv(92, 71%, 51%)
CMYKcmyk(38%, 0%, 71.3%, 49.4%)
CIE-LABlab(48.93, -32.64, 42.65)
CIE-LCHlch(48.93, 53.70, 127.42°)
OKLaboklab(54.88% -0.0915 0.0968)
OKLCHoklch(54.88% 0.133 133.4)
XYZxyz(11.4923, 17.5390, 4.5298)
Luminance0.1754 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508125 #562581
analogous
#7E8125 #508125 #258128
triadic
#508125 #255081 #812550
tetradic
#508125 #257E81 #562581 #812825
square
#508125 #257E81 #562581 #812825
split-complementary
#508125 #282581 #81257E
monochromatic
#15220A #335117 #508125 #6DB133 #8CCE53

Accessibility & contrast

On white

4.66
#508125 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #508125
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508125#FFFFFF#000000##FFFFFF
##5081251.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867717
Deuteranopia (green-blind)
#80732D
Tritanopia (blue-blind)
#507C6F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #508125;
/* rgb */ color: rgb(80, 129, 37);
/* oklch */ color: oklch(54.9% 0.133 133.4);
Tailwind
colors: {
  custom: {
    50: '#85a665',
    500: '#508125',
    950: '#000000',
  },
}
SCSS
$custom: #508125;
$custom-light: #85a665;
$custom-dark: #000000;
JSON
{
  "hex": "#508125",
  "rgb": {
    "r": 80,
    "g": 129,
    "b": 37
  },
  "hsl": {
    "h": 91.957,
    "s": 55.422,
    "l": 32.549
  },
  "oklch": {
    "l": 0.54877,
    "c": 0.13319,
    "h": 133.4
  },
  "luminance": 0.1754
}

Semantic roles & 50–950 ramp

primary
#508125
secondary
#8450B2
accent
#49DF99
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B0F06
muted
#7C7F7A

Preview Lab

Preview with #508125

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

Preview Lab → · Contrast checker → · Palette generator →

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