#508C2C#508C2C

#508C2C is a mid, vivid yellow-green. Relative luminance 0.206; OKLCH L 57.9% C 0.143 H 135.9°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#508C2C
RGBrgb(80, 140, 44)
HSLhsl(98, 52%, 36%)
HSVhsv(98, 69%, 55%)
CMYKcmyk(42.9%, 0%, 68.6%, 45.1%)
CIE-LABlab(52.56, -36.96, 43.50)
CIE-LCHlch(52.56, 57.08, 130.36°)
OKLaboklab(57.86% -0.1027 0.0996)
OKLCHoklch(57.86% 0.143 135.9)
XYZxyz(13.1406, 20.6428, 5.6744)
Luminance0.2064 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508C2C #682C8C
analogous
#808C2C #508C2C #2C8C38
triadic
#508C2C #2C508C #8C2C50
tetradic
#508C2C #2C808C #682C8C #8C382C
square
#508C2C #2C808C #682C8C #8C382C
split-complementary
#508C2C #382C8C #8C2C80
monochromatic
#1B2F0F #355D1D #508C2C #6BBB3B #8CCE64

Accessibility & contrast

On white

4.09
#508C2C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#508C2C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508C2C
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508C2C#FFFFFF#000000##000000
##508C2C1.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#91811F
Deuteranopia (green-blind)
#897C34
Tritanopia (blue-blind)
#4E8778
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #508c2c;
/* rgb */ color: rgb(80, 140, 44);
/* oklch */ color: oklch(57.9% 0.143 135.9);
Tailwind
colors: {
  custom: {
    50: '#86ae6a',
    500: '#508c2c',
    950: '#000000',
  },
}
SCSS
$custom: #508c2c;
$custom-light: #86ae6a;
$custom-dark: #000000;
JSON
{
  "hex": "#508c2c",
  "rgb": {
    "r": 80,
    "g": 140,
    "b": 44
  },
  "hsl": {
    "h": 97.5,
    "s": 52.174,
    "l": 36.078
  },
  "oklch": {
    "l": 0.57858,
    "c": 0.14302,
    "h": 135.9
  },
  "luminance": 0.20643
}

Semantic roles & 50–950 ramp

primary
#508C2C
secondary
#955FB5
accent
#4CDCA6
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #508C2C

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

Preview Lab → · Contrast checker → · Palette generator →

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