#508B1B#508B1B

#508B1B 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#508B1B
RGBrgb(80, 139, 27)
HSLhsl(92, 67%, 33%)
HSVhsv(92, 81%, 55%)
CMYKcmyk(42.4%, 0%, 80.6%, 45.5%)
CIE-LABlab(52.12, -37.73, 49.47)
CIE-LCHlch(52.12, 62.22, 127.33°)
OKLaboklab(57.46% -0.106 0.1095)
OKLCHoklch(57.46% 0.152 134.1)
XYZxyz(12.7385, 20.2492, 4.2740)
Luminance0.2025 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508B1B #561B8B
analogous
#888B1B #508B1B #1B8B1E
triadic
#508B1B #1B508B #8B1B50
tetradic
#508B1B #1B888B #561B8B #8B1E1B
square
#508B1B #1B888B #561B8B #8B1E1B
split-complementary
#508B1B #1E1B8B #8B1B88
monochromatic
#152507 #335811 #508B1B #6DBE25 #8CDB45

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##508B1B#FFFFFF#000000##000000
##508B1B1.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: #508b1b;
/* rgb */ color: rgb(80, 139, 27);
/* oklch */ color: oklch(57.5% 0.152 134.1);
Tailwind
colors: {
  custom: {
    50: '#87ad62',
    500: '#508b1b',
    950: '#000000',
  },
}
SCSS
$custom: #508b1b;
$custom-light: #87ad62;
$custom-dark: #000000;
JSON
{
  "hex": "#508b1b",
  "rgb": {
    "r": 80,
    "g": 139,
    "b": 27
  },
  "hsl": {
    "h": 91.607,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.57462,
    "c": 0.15244,
    "h": 134.1
  },
  "luminance": 0.2025
}

Semantic roles & 50–950 ramp

primary
#508B1B
secondary
#8445BC
accent
#3DEA99
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #508B1B

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

Preview Lab → · Contrast checker → · Palette generator →

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