#508A2D#508A2D

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

Color values

HEX#508A2D
RGBrgb(80, 138, 45)
HSLhsl(97, 51%, 36%)
HSVhsv(97, 67%, 54%)
CMYKcmyk(42%, 0%, 67.4%, 45.9%)
CIE-LABlab(51.92, -35.99, 42.38)
CIE-LCHlch(51.92, 55.60, 130.34°)
OKLaboklab(57.34% -0.1 0.0973)
OKLCHoklch(57.34% 0.14 135.8)
XYZxyz(12.8701, 20.0712, 5.6781)
Luminance0.2007 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508A2D #672D8A
analogous
#7E8A2D #508A2D #2D8A38
triadic
#508A2D #2D508A #8A2D50
tetradic
#508A2D #2D7E8A #672D8A #8A382D
square
#508A2D #2D7E8A #672D8A #8A382D
split-complementary
#508A2D #382D8A #8A2D7E
monochromatic
#1A2E0F #355C1E #508A2D #6BB83C #8CCD65

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##508A2D#FFFFFF#000000##000000
##508A2D1.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)
#8F7F21
Deuteranopia (green-blind)
#877A35
Tritanopia (blue-blind)
#4E8577
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #508a2d;
/* rgb */ color: rgb(80, 138, 45);
/* oklch */ color: oklch(57.3% 0.140 135.8);
Tailwind
colors: {
  custom: {
    50: '#86ac6b',
    500: '#508a2d',
    950: '#000000',
  },
}
SCSS
$custom: #508a2d;
$custom-light: #86ac6b;
$custom-dark: #000000;
JSON
{
  "hex": "#508a2d",
  "rgb": {
    "r": 80,
    "g": 138,
    "b": 45
  },
  "hsl": {
    "h": 97.419,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.57338,
    "c": 0.13952,
    "h": 135.8
  },
  "luminance": 0.20072
}

Semantic roles & 50–950 ramp

primary
#508A2D
secondary
#9460B3
accent
#4DDAA5
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B1007
muted
#7C7F7A

Preview Lab

Preview with #508A2D

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

Preview Lab → · Contrast checker → · Palette generator →

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