#508C1F#508C1F

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

Color values

HEX#508C1F
RGBrgb(80, 140, 31)
HSLhsl(93, 64%, 34%)
HSVhsv(93, 78%, 55%)
CMYKcmyk(42.9%, 0%, 77.9%, 45.1%)
CIE-LABlab(52.46, -37.93, 48.47)
CIE-LCHlch(52.46, 61.55, 128.04°)
OKLaboklab(57.75% -0.1063 0.1081)
OKLCHoklch(57.75% 0.152 134.5)
XYZxyz(12.9334, 20.5599, 4.5830)
Luminance0.2056 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508C1F #5B1F8C
analogous
#868C1F #508C1F #1F8C25
triadic
#508C1F #1F508C #8C1F50
tetradic
#508C1F #1F868C #5B1F8C #8C251F
square
#508C1F #1F868C #5B1F8C #8C251F
split-complementary
#508C1F #251F8C #8C1F86
monochromatic
#172809 #335A14 #508C1F #6DBE2A #8CD84E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##508C1F#FFFFFF#000000##000000
##508C1F1.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)
#928005
Deuteranopia (green-blind)
#897B2A
Tritanopia (blue-blind)
#4F8677
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #508c1f;
/* rgb */ color: rgb(80, 140, 31);
/* oklch */ color: oklch(57.8% 0.152 134.5);
Tailwind
colors: {
  custom: {
    50: '#87ae63',
    500: '#508c1f',
    950: '#000000',
  },
}
SCSS
$custom: #508c1f;
$custom-light: #87ae63;
$custom-dark: #000000;
JSON
{
  "hex": "#508c1f",
  "rgb": {
    "r": 80,
    "g": 140,
    "b": 31
  },
  "hsl": {
    "h": 93.028,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.57753,
    "c": 0.15157,
    "h": 134.5
  },
  "luminance": 0.20561
}

Semantic roles & 50–950 ramp

primary
#508C1F
secondary
#894CBB
accent
#41E79C
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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