#508F25#508F25

#508F25 is a mid, vivid yellow-green. Relative luminance 0.215; OKLCH L 58.6% C 0.152 H 135.5°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#508F25
RGBrgb(80, 143, 37)
HSLhsl(96, 59%, 35%)
HSVhsv(96, 74%, 56%)
CMYKcmyk(44.1%, 0%, 74.1%, 43.9%)
CIE-LABlab(53.47, -38.81, 47.28)
CIE-LCHlch(53.47, 61.17, 129.38°)
OKLaboklab(58.59% -0.1082 0.1065)
OKLCHoklch(58.59% 0.152 135.5)
XYZxyz(13.4643, 21.4832, 5.1871)
Luminance0.2148 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508F25 #64258F
analogous
#858F25 #508F25 #258F2F
triadic
#508F25 #25508F #8F2550
tetradic
#508F25 #25858F #64258F #8F2F25
square
#508F25 #25858F #64258F #8F2F25
split-complementary
#508F25 #2F258F #8F2585
monochromatic
#1A2E0C #355E18 #508F25 #6BC032 #8CD45A

Accessibility & contrast

On white

3.96
#508F25 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#508F25 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508F25
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508F25#FFFFFF#000000##000000
##508F251.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#948312
Deuteranopia (green-blind)
#8C7E2F
Tritanopia (blue-blind)
#4E897A
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #508f25;
/* rgb */ color: rgb(80, 143, 37);
/* oklch */ color: oklch(58.6% 0.152 135.5);
Tailwind
colors: {
  custom: {
    50: '#87b067',
    500: '#508f25',
    950: '#000000',
  },
}
SCSS
$custom: #508f25;
$custom-light: #87b067;
$custom-dark: #000000;
JSON
{
  "hex": "#508f25",
  "rgb": {
    "r": 80,
    "g": 143,
    "b": 37
  },
  "hsl": {
    "h": 95.66,
    "s": 58.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.58593,
    "c": 0.15184,
    "h": 135.5
  },
  "luminance": 0.21484
}

Semantic roles & 50–950 ramp

primary
#508F25
secondary
#9157B9
accent
#46E2A3
background
#F8FAF6
surface
#F0F5EB
border
#CBCFC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508F25

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

Preview Lab → · Contrast checker → · Palette generator →

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