#508C1C#508C1C

#508C1C is a mid, vivid yellow-green. Relative luminance 0.205; OKLCH L 57.7% C 0.153 H 134.3°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#508C1C
RGBrgb(80, 140, 28)
HSLhsl(92, 67%, 33%)
HSVhsv(92, 80%, 55%)
CMYKcmyk(42.9%, 0%, 80%, 45.1%)
CIE-LABlab(52.45, -38.11, 49.46)
CIE-LCHlch(52.45, 62.44, 127.61°)
OKLaboklab(57.73% -0.107 0.1097)
OKLCHoklch(57.73% 0.153 134.3)
XYZxyz(12.8957, 20.5448, 4.3844)
Luminance0.2054 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508C1C #581C8C
analogous
#888C1C #508C1C #1C8C20
triadic
#508C1C #1C508C #8C1C50
tetradic
#508C1C #1C888C #581C8C #8C201C
square
#508C1C #1C888C #581C8C #8C201C
split-complementary
#508C1C #201C8C #8C1C88
monochromatic
#162608 #335912 #508C1C #6DBF26 #8CDA48

Accessibility & contrast

On white

4.11
#508C1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#508C1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508C1C
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508C1C#FFFFFF#000000##000000
##508C1C1.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#928000
Deuteranopia (green-blind)
#8A7B28
Tritanopia (blue-blind)
#4F8677
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #508c1c;
/* rgb */ color: rgb(80, 140, 28);
/* oklch */ color: oklch(57.7% 0.153 134.3);
Tailwind
colors: {
  custom: {
    50: '#87ae62',
    500: '#508c1c',
    950: '#000000',
  },
}
SCSS
$custom: #508c1c;
$custom-light: #87ae62;
$custom-dark: #000000;
JSON
{
  "hex": "#508c1c",
  "rgb": {
    "r": 80,
    "g": 140,
    "b": 28
  },
  "hsl": {
    "h": 92.143,
    "s": 66.667,
    "l": 32.941
  },
  "oklch": {
    "l": 0.57734,
    "c": 0.1532,
    "h": 134.3
  },
  "luminance": 0.20545
}

Semantic roles & 50–950 ramp

primary
#508C1C
secondary
#8648BC
accent
#3EEA9A
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508C1C

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

Preview Lab → · Contrast checker → · Palette generator →

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