#508C1E#508C1E

#508C1E is a mid, vivid yellow-green. Relative luminance 0.206; OKLCH L 57.7% C 0.152 H 134.4°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#508C1E
RGBrgb(80, 140, 30)
HSLhsl(93, 65%, 33%)
HSVhsv(93, 79%, 55%)
CMYKcmyk(42.9%, 0%, 78.6%, 45.1%)
CIE-LABlab(52.46, -37.99, 48.81)
CIE-LCHlch(52.46, 61.85, 127.90°)
OKLaboklab(57.75% -0.1065 0.1086)
OKLCHoklch(57.75% 0.152 134.4)
XYZxyz(12.9204, 20.5547, 4.5147)
Luminance0.2056 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508C1E #5A1E8C
analogous
#878C1E #508C1E #1E8C23
triadic
#508C1E #1E508C #8C1E50
tetradic
#508C1E #1E878C #5A1E8C #8C231E
square
#508C1E #1E878C #5A1E8C #8C231E
split-complementary
#508C1E #231E8C #8C1E87
monochromatic
#162708 #335A13 #508C1E #6DBE29 #8CD94C

Accessibility & contrast

On white

4.11
#508C1E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#508C1E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508C1E
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508C1E#FFFFFF#000000##000000
##508C1E1.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#928002
Deuteranopia (green-blind)
#8A7B2A
Tritanopia (blue-blind)
#4F8677
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #508c1e;
/* rgb */ color: rgb(80, 140, 30);
/* oklch */ color: oklch(57.7% 0.152 134.4);
Tailwind
colors: {
  custom: {
    50: '#87ae63',
    500: '#508c1e',
    950: '#000000',
  },
}
SCSS
$custom: #508c1e;
$custom-light: #87ae63;
$custom-dark: #000000;
JSON
{
  "hex": "#508c1e",
  "rgb": {
    "r": 80,
    "g": 140,
    "b": 30
  },
  "hsl": {
    "h": 92.727,
    "s": 64.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.57747,
    "c": 0.15213,
    "h": 134.4
  },
  "luminance": 0.20555
}

Semantic roles & 50–950 ramp

primary
#508C1E
secondary
#884BBB
accent
#40E89C
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508C1E

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

Preview Lab → · Contrast checker → · Palette generator →

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