#508A2B#508A2B

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

Color values

HEX#508A2B
RGBrgb(80, 138, 43)
HSLhsl(97, 52%, 35%)
HSVhsv(97, 69%, 54%)
CMYKcmyk(42%, 0%, 68.8%, 45.9%)
CIE-LABlab(51.90, -36.17, 43.23)
CIE-LCHlch(51.90, 56.36, 129.92°)
OKLaboklab(57.32% -0.1006 0.0988)
OKLCHoklch(57.32% 0.141 135.5)
XYZxyz(12.8325, 20.0562, 5.4801)
Luminance0.2006 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508A2B #652B8A
analogous
#7F8A2B #508A2B #2B8A36
triadic
#508A2B #2B508A #8A2B50
tetradic
#508A2B #2B7F8A #652B8A #8A362B
square
#508A2B #2B7F8A #652B8A #8A362B
split-complementary
#508A2B #362B8A #8A2B7F
monochromatic
#1A2D0E #355B1C #508A2B #6BB93A #8CCE61

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##508A2B#FFFFFF#000000##000000
##508A2B1.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)
#8F7F1E
Deuteranopia (green-blind)
#877A33
Tritanopia (blue-blind)
#4E8577
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #508a2b;
/* rgb */ color: rgb(80, 138, 43);
/* oklch */ color: oklch(57.3% 0.141 135.5);
Tailwind
colors: {
  custom: {
    50: '#86ac69',
    500: '#508a2b',
    950: '#000000',
  },
}
SCSS
$custom: #508a2b;
$custom-light: #86ac69;
$custom-dark: #000000;
JSON
{
  "hex": "#508a2b",
  "rgb": {
    "r": 80,
    "g": 138,
    "b": 43
  },
  "hsl": {
    "h": 96.632,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.57319,
    "c": 0.14105,
    "h": 135.5
  },
  "luminance": 0.20057
}

Semantic roles & 50–950 ramp

primary
#508A2B
secondary
#925DB4
accent
#4CDCA4
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #508A2B

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

Preview Lab → · Contrast checker → · Palette generator →

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