#508A1C#508A1C

#508A1C is a mid, vivid yellow-green. Relative luminance 0.200; OKLCH L 57.2% C 0.151 H 134.0°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#508A1C
RGBrgb(80, 138, 28)
HSLhsl(92, 66%, 33%)
HSVhsv(92, 80%, 54%)
CMYKcmyk(42%, 0%, 79.7%, 45.9%)
CIE-LABlab(51.80, -37.25, 48.85)
CIE-LCHlch(51.80, 61.43, 127.33°)
OKLaboklab(57.2% -0.1046 0.1084)
OKLCHoklch(57.2% 0.151 134)
XYZxyz(12.6061, 19.9656, 4.2879)
Luminance0.1997 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508A1C #561C8A
analogous
#878A1C #508A1C #1C8A1F
triadic
#508A1C #1C508A #8A1C50
tetradic
#508A1C #1C878A #561C8A #8A1F1C
square
#508A1C #1C878A #561C8A #8A1F1C
split-complementary
#508A1C #1F1C8A #8A1C87
monochromatic
#152407 #335712 #508A1C #6DBD26 #8CDA47

Accessibility & contrast

On white

4.21
#508A1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#508A1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508A1C
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508A1C#FFFFFF#000000##000000
##508A1C1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#907E00
Deuteranopia (green-blind)
#887A28
Tritanopia (blue-blind)
#4F8476
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #508a1c;
/* rgb */ color: rgb(80, 138, 28);
/* oklch */ color: oklch(57.2% 0.151 134.0);
Tailwind
colors: {
  custom: {
    50: '#87ac62',
    500: '#508a1c',
    950: '#000000',
  },
}
SCSS
$custom: #508a1c;
$custom-light: #87ac62;
$custom-dark: #000000;
JSON
{
  "hex": "#508a1c",
  "rgb": {
    "r": 80,
    "g": 138,
    "b": 28
  },
  "hsl": {
    "h": 91.636,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.57202,
    "c": 0.15066,
    "h": 134
  },
  "luminance": 0.19966
}

Semantic roles & 50–950 ramp

primary
#508A1C
secondary
#8446BB
accent
#3FE999
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #508A1C

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

Preview Lab → · Contrast checker → · Palette generator →

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