#508F1F#508F1F

#508F1F is a mid, vivid yellow-green. Relative luminance 0.214; OKLCH L 58.6% C 0.155 H 134.9°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#508F1F
RGBrgb(80, 143, 31)
HSLhsl(94, 64%, 34%)
HSVhsv(94, 78%, 56%)
CMYKcmyk(44.1%, 0%, 78.3%, 43.9%)
CIE-LABlab(53.44, -39.21, 49.41)
CIE-LCHlch(53.44, 63.08, 128.44°)
OKLaboklab(58.55% -0.1097 0.11)
OKLCHoklch(58.55% 0.155 134.9)
XYZxyz(13.3778, 21.4486, 4.7311)
Luminance0.2145 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508F1F #5E1F8F
analogous
#888F1F #508F1F #1F8F26
triadic
#508F1F #1F508F #8F1F50
tetradic
#508F1F #1F888F #5E1F8F #8F261F
square
#508F1F #1F888F #5E1F8F #8F261F
split-complementary
#508F1F #261F8F #8F1F88
monochromatic
#182A09 #345D14 #508F1F #6CC12A #8CD94F

Accessibility & contrast

On white

3.97
#508F1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#508F1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508F1F
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508F1F#FFFFFF#000000##000000
##508F1F1.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#958303
Deuteranopia (green-blind)
#8C7E2B
Tritanopia (blue-blind)
#4F897A
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #508f1f;
/* rgb */ color: rgb(80, 143, 31);
/* oklch */ color: oklch(58.6% 0.155 134.9);
Tailwind
colors: {
  custom: {
    50: '#87b064',
    500: '#508f1f',
    950: '#000000',
  },
}
SCSS
$custom: #508f1f;
$custom-light: #87b064;
$custom-dark: #000000;
JSON
{
  "hex": "#508f1f",
  "rgb": {
    "r": 80,
    "g": 143,
    "b": 31
  },
  "hsl": {
    "h": 93.75,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.5855,
    "c": 0.15539,
    "h": 134.9
  },
  "luminance": 0.21449
}

Semantic roles & 50–950 ramp

primary
#508F1F
secondary
#8C4EBC
accent
#40E79E
background
#F8FAF6
surface
#F0F5EB
border
#CBCFC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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