#508A28#508A28

#508A28 is a mid, vivid yellow-green. Relative luminance 0.200; OKLCH L 57.3% C 0.143 H 135.1°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#508A28
RGBrgb(80, 138, 40)
HSLhsl(96, 55%, 35%)
HSVhsv(96, 71%, 54%)
CMYKcmyk(42%, 0%, 71%, 45.9%)
CIE-LABlab(51.88, -36.42, 44.46)
CIE-LCHlch(51.88, 57.48, 129.32°)
OKLaboklab(57.29% -0.1015 0.101)
OKLCHoklch(57.29% 0.143 135.1)
XYZxyz(12.7795, 20.0349, 5.2008)
Luminance0.2004 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508A28 #62288A
analogous
#818A28 #508A28 #288A31
triadic
#508A28 #28508A #8A2850
tetradic
#508A28 #28818A #62288A #8A3128
square
#508A28 #28818A #62288A #8A3128
split-complementary
#508A28 #31288A #8A2881
monochromatic
#192B0C #345B1A #508A28 #6CB936 #8CD05D

Accessibility & contrast

On white

4.19
#508A28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#508A28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508A28
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508A28#FFFFFF#000000##000000
##508A281.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F19
Deuteranopia (green-blind)
#877A31
Tritanopia (blue-blind)
#4F8576
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #508a28;
/* rgb */ color: rgb(80, 138, 40);
/* oklch */ color: oklch(57.3% 0.143 135.1);
Tailwind
colors: {
  custom: {
    50: '#86ac68',
    500: '#508a28',
    950: '#000000',
  },
}
SCSS
$custom: #508a28;
$custom-light: #86ac68;
$custom-dark: #000000;
JSON
{
  "hex": "#508a28",
  "rgb": {
    "r": 80,
    "g": 138,
    "b": 40
  },
  "hsl": {
    "h": 95.51,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.57291,
    "c": 0.14323,
    "h": 135.1
  },
  "luminance": 0.20036
}

Semantic roles & 50–950 ramp

primary
#508A28
secondary
#8F59B5
accent
#49DEA2
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508A28

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

Preview Lab → · Contrast checker → · Palette generator →

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