#508D30#508D30

#508D30 is a mid, vivid yellow-green. Relative luminance 0.210; OKLCH L 58.2% C 0.141 H 136.6°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#508D30
RGBrgb(80, 141, 48)
HSLhsl(99, 49%, 37%)
HSVhsv(99, 66%, 55%)
CMYKcmyk(43.3%, 0%, 66%, 44.7%)
CIE-LABlab(52.91, -37.03, 42.13)
CIE-LCHlch(52.91, 56.09, 131.32°)
OKLaboklab(58.16% -0.1026 0.0972)
OKLCHoklch(58.16% 0.141 136.6)
XYZxyz(13.3663, 20.9679, 6.1386)
Luminance0.2097 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508D30 #6D308D
analogous
#7F8D30 #508D30 #308D3F
triadic
#508D30 #30508D #8D3050
tetradic
#508D30 #307F8D #6D308D #8D3F30
square
#508D30 #307F8D #6D308D #8D3F30
split-complementary
#508D30 #3F308D #8D307F
monochromatic
#1C3211 #365F20 #508D30 #6ABB40 #8CCD6B

Accessibility & contrast

On white

4.04
#508D30 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#508D30 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508D30
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508D30#FFFFFF#000000##000000
##508D301.004.045.195.19
#FFFFFF4.041.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#928224
Deuteranopia (green-blind)
#897C38
Tritanopia (blue-blind)
#4D887A
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #508d30;
/* rgb */ color: rgb(80, 141, 48);
/* oklch */ color: oklch(58.2% 0.141 136.6);
Tailwind
colors: {
  custom: {
    50: '#86af6d',
    500: '#508d30',
    950: '#000000',
  },
}
SCSS
$custom: #508d30;
$custom-light: #86af6d;
$custom-dark: #000000;
JSON
{
  "hex": "#508d30",
  "rgb": {
    "r": 80,
    "g": 141,
    "b": 48
  },
  "hsl": {
    "h": 99.355,
    "s": 49.206,
    "l": 37.059
  },
  "oklch": {
    "l": 0.58162,
    "c": 0.1413,
    "h": 136.6
  },
  "luminance": 0.20969
}

Semantic roles & 50–950 ramp

primary
#508D30
secondary
#9965B4
accent
#4FD9A9
background
#F8FAF6
surface
#F0F4EC
border
#CBCEC7
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #508D30

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

Preview Lab → · Contrast checker → · Palette generator →

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