#508F1C#508F1C

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

Color values

HEX#508F1C
RGBrgb(80, 143, 28)
HSLhsl(93, 67%, 34%)
HSVhsv(93, 80%, 56%)
CMYKcmyk(44.1%, 0%, 80.4%, 43.9%)
CIE-LABlab(53.42, -39.38, 50.38)
CIE-LCHlch(53.42, 63.94, 128.02°)
OKLaboklab(58.53% -0.1104 0.1116)
OKLCHoklch(58.53% 0.157 134.7)
XYZxyz(13.3401, 21.4335, 4.5325)
Luminance0.2143 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508F1C #5B1C8F
analogous
#898F1C #508F1C #1C8F22
triadic
#508F1C #1C508F #8F1C50
tetradic
#508F1C #1C898F #5B1C8F #8F221C
square
#508F1C #1C898F #5B1C8F #8F221C
split-complementary
#508F1C #221C8F #8F1C89
monochromatic
#172908 #335C12 #508F1C #6DC226 #8CDC4A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##508F1C#FFFFFF#000000##000000
##508F1C1.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)
#958300
Deuteranopia (green-blind)
#8C7E29
Tritanopia (blue-blind)
#4F897A
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #508f1c;
/* rgb */ color: rgb(80, 143, 28);
/* oklch */ color: oklch(58.5% 0.157 134.7);
Tailwind
colors: {
  custom: {
    50: '#87b063',
    500: '#508f1c',
    950: '#000000',
  },
}
SCSS
$custom: #508f1c;
$custom-light: #87b063;
$custom-dark: #000000;
JSON
{
  "hex": "#508f1c",
  "rgb": {
    "r": 80,
    "g": 143,
    "b": 28
  },
  "hsl": {
    "h": 92.87,
    "s": 67.251,
    "l": 33.529
  },
  "oklch": {
    "l": 0.58532,
    "c": 0.15697,
    "h": 134.7
  },
  "luminance": 0.21434
}

Semantic roles & 50–950 ramp

primary
#508F1C
secondary
#8949BE
accent
#3EEA9C
background
#F8FAF6
surface
#F0F5EB
border
#CBCFC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508F1C

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

Preview Lab → · Contrast checker → · Palette generator →

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