#508C2A#508C2A

#508C2A is a mid, vivid yellow-green. Relative luminance 0.206; OKLCH L 57.8% C 0.144 H 135.6°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#508C2A
RGBrgb(80, 140, 42)
HSLhsl(97, 54%, 36%)
HSVhsv(97, 70%, 55%)
CMYKcmyk(42.9%, 0%, 70%, 45.1%)
CIE-LABlab(52.54, -37.13, 44.33)
CIE-LCHlch(52.54, 57.82, 129.95°)
OKLaboklab(57.84% -0.1033 0.101)
OKLCHoklch(57.84% 0.144 135.6)
XYZxyz(13.1039, 20.6281, 5.4812)
Luminance0.2063 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508C2A #662A8C
analogous
#818C2A #508C2A #2A8C35
triadic
#508C2A #2A508C #8C2A50
tetradic
#508C2A #2A818C #662A8C #8C352A
square
#508C2A #2A818C #662A8C #8C352A
split-complementary
#508C2A #352A8C #8C2A81
monochromatic
#1A2E0E #355D1C #508C2A #6BBB38 #8CD061

Accessibility & contrast

On white

4.10
#508C2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#508C2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508C2A
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508C2A#FFFFFF#000000##000000
##508C2A1.004.105.135.13
#FFFFFF4.101.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#91801C
Deuteranopia (green-blind)
#897C33
Tritanopia (blue-blind)
#4E8778
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #508c2a;
/* rgb */ color: rgb(80, 140, 42);
/* oklch */ color: oklch(57.8% 0.144 135.6);
Tailwind
colors: {
  custom: {
    50: '#86ae69',
    500: '#508c2a',
    950: '#000000',
  },
}
SCSS
$custom: #508c2a;
$custom-light: #86ae69;
$custom-dark: #000000;
JSON
{
  "hex": "#508c2a",
  "rgb": {
    "r": 80,
    "g": 140,
    "b": 42
  },
  "hsl": {
    "h": 96.735,
    "s": 53.846,
    "l": 35.686
  },
  "oklch": {
    "l": 0.57839,
    "c": 0.14449,
    "h": 135.6
  },
  "luminance": 0.20629
}

Semantic roles & 50–950 ramp

primary
#508C2A
secondary
#935CB5
accent
#4BDDA4
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #508C2A

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

Preview Lab → · Contrast checker → · Palette generator →

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