#508C25#508C25

#508C25 is a mid, vivid yellow-green. Relative luminance 0.206; OKLCH L 57.8% C 0.148 H 135.1°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#508C25
RGBrgb(80, 140, 37)
HSLhsl(95, 58%, 35%)
HSVhsv(95, 74%, 55%)
CMYKcmyk(42.9%, 0%, 73.6%, 45.1%)
CIE-LABlab(52.50, -37.52, 46.30)
CIE-LCHlch(52.50, 59.60, 129.02°)
OKLaboklab(57.8% -0.1047 0.1045)
OKLCHoklch(57.8% 0.148 135.1)
XYZxyz(13.0200, 20.5945, 5.0390)
Luminance0.2059 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508C25 #61258C
analogous
#848C25 #508C25 #258C2D
triadic
#508C25 #25508C #8C2550
tetradic
#508C25 #25848C #61258C #8C2D25
square
#508C25 #25848C #61258C #8C2D25
split-complementary
#508C25 #2D258C #8C2584
monochromatic
#192B0B #345C18 #508C25 #6CBC32 #8CD358

Accessibility & contrast

On white

4.10
#508C25 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#508C25 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508C25
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508C25#FFFFFF#000000##000000
##508C251.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#918013
Deuteranopia (green-blind)
#897B2F
Tritanopia (blue-blind)
#4F8778
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #508c25;
/* rgb */ color: rgb(80, 140, 37);
/* oklch */ color: oklch(57.8% 0.148 135.1);
Tailwind
colors: {
  custom: {
    50: '#86ae66',
    500: '#508c25',
    950: '#000000',
  },
}
SCSS
$custom: #508c25;
$custom-light: #86ae66;
$custom-dark: #000000;
JSON
{
  "hex": "#508c25",
  "rgb": {
    "r": 80,
    "g": 140,
    "b": 37
  },
  "hsl": {
    "h": 94.951,
    "s": 58.192,
    "l": 34.706
  },
  "oklch": {
    "l": 0.57797,
    "c": 0.14792,
    "h": 135.1
  },
  "luminance": 0.20595
}

Semantic roles & 50–950 ramp

primary
#508C25
secondary
#8F55B8
accent
#46E1A1
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508C25

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

Preview Lab → · Contrast checker → · Palette generator →

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