#508A2F#508A2F

#508A2F is a mid, vivid yellow-green. Relative luminance 0.201; OKLCH L 57.4% C 0.138 H 136.1°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#508A2F
RGBrgb(80, 138, 47)
HSLhsl(98, 49%, 36%)
HSVhsv(98, 66%, 54%)
CMYKcmyk(42%, 0%, 65.9%, 45.9%)
CIE-LABlab(51.94, -35.81, 41.51)
CIE-LCHlch(51.94, 54.82, 130.78°)
OKLaboklab(57.36% -0.0993 0.0957)
OKLCHoklch(57.36% 0.138 136.1)
XYZxyz(12.9095, 20.0870, 5.8857)
Luminance0.2009 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508A2F #692F8A
analogous
#7E8A2F #508A2F #2F8A3C
triadic
#508A2F #2F508A #8A2F50
tetradic
#508A2F #2F7E8A #692F8A #8A3C2F
square
#508A2F #2F7E8A #692F8A #8A3C2F
split-complementary
#508A2F #3C2F8A #8A2F7E
monochromatic
#1B2F10 #365C1F #508A2F #6AB83F #8CCC68

Accessibility & contrast

On white

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

On black

5.02
#508A2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508A2F
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508A2F#FFFFFF#000000##000000
##508A2F1.004.195.025.02
#FFFFFF4.191.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F24
Deuteranopia (green-blind)
#877A36
Tritanopia (blue-blind)
#4E8577
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #508a2f;
/* rgb */ color: rgb(80, 138, 47);
/* oklch */ color: oklch(57.4% 0.138 136.1);
Tailwind
colors: {
  custom: {
    50: '#86ac6c',
    500: '#508a2f',
    950: '#000000',
  },
}
SCSS
$custom: #508a2f;
$custom-light: #86ac6c;
$custom-dark: #000000;
JSON
{
  "hex": "#508a2f",
  "rgb": {
    "r": 80,
    "g": 138,
    "b": 47
  },
  "hsl": {
    "h": 98.242,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.57358,
    "c": 0.13795,
    "h": 136.1
  },
  "luminance": 0.20088
}

Semantic roles & 50–950 ramp

primary
#508A2F
secondary
#9562B3
accent
#4FD9A7
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B1007
muted
#7C7F7A

Preview Lab

Preview with #508A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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