#508B1C#508B1C

#508B1C is a mid, vivid yellow-green. Relative luminance 0.203; OKLCH L 57.5% C 0.152 H 134.1°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#508B1C
RGBrgb(80, 139, 28)
HSLhsl(92, 66%, 33%)
HSVhsv(92, 80%, 55%)
CMYKcmyk(42.4%, 0%, 79.9%, 45.5%)
CIE-LABlab(52.12, -37.68, 49.16)
CIE-LCHlch(52.12, 61.94, 127.47°)
OKLaboklab(57.47% -0.1058 0.109)
OKLCHoklch(57.47% 0.152 134.1)
XYZxyz(12.7502, 20.2539, 4.3359)
Luminance0.2026 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508B1C #571C8B
analogous
#878B1C #508B1C #1C8B20
triadic
#508B1C #1C508B #8B1C50
tetradic
#508B1C #1C878B #571C8B #8B201C
square
#508B1C #1C878B #571C8B #8B201C
split-complementary
#508B1C #201C8B #8B1C87
monochromatic
#152507 #335812 #508B1C #6DBE26 #8CDA47

Accessibility & contrast

On white

4.16
#508B1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#508B1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508B1C
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508B1C#FFFFFF#000000##000000
##508B1C1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#917F00
Deuteranopia (green-blind)
#897B28
Tritanopia (blue-blind)
#4F8576
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #508b1c;
/* rgb */ color: rgb(80, 139, 28);
/* oklch */ color: oklch(57.5% 0.152 134.1);
Tailwind
colors: {
  custom: {
    50: '#87ad62',
    500: '#508b1c',
    950: '#000000',
  },
}
SCSS
$custom: #508b1c;
$custom-light: #87ad62;
$custom-dark: #000000;
JSON
{
  "hex": "#508b1c",
  "rgb": {
    "r": 80,
    "g": 139,
    "b": 28
  },
  "hsl": {
    "h": 91.892,
    "s": 66.467,
    "l": 32.745
  },
  "oklch": {
    "l": 0.57468,
    "c": 0.15192,
    "h": 134.1
  },
  "luminance": 0.20255
}

Semantic roles & 50–950 ramp

primary
#508B1C
secondary
#8547BC
accent
#3EE999
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #508B1C

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

Preview Lab → · Contrast checker → · Palette generator →

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