#508B2C#508B2C

#508B2C is a mid, vivid yellow-green. Relative luminance 0.204; OKLCH L 57.6% C 0.142 H 135.8°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#508B2C
RGBrgb(80, 139, 44)
HSLhsl(97, 52%, 36%)
HSVhsv(97, 68%, 55%)
CMYKcmyk(42.4%, 0%, 68.3%, 45.5%)
CIE-LABlab(52.23, -36.52, 43.15)
CIE-LCHlch(52.23, 56.53, 130.24°)
OKLaboklab(57.59% -0.1015 0.0988)
OKLCHoklch(57.59% 0.142 135.8)
XYZxyz(12.9952, 20.3518, 5.6259)
Luminance0.2035 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508B2C #672C8B
analogous
#7F8B2C #508B2C #2C8B37
triadic
#508B2C #2C508B #8B2C50
tetradic
#508B2C #2C7F8B #672C8B #8B372C
square
#508B2C #2C7F8B #672C8B #8B372C
split-complementary
#508B2C #372C8B #8B2C7F
monochromatic
#1A2E0F #355D1D #508B2C #6BB93B #8CCE64

Accessibility & contrast

On white

4.14
#508B2C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#508B2C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508B2C
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508B2C#FFFFFF#000000##000000
##508B2C1.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#90801F
Deuteranopia (green-blind)
#887B34
Tritanopia (blue-blind)
#4E8678
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #508b2c;
/* rgb */ color: rgb(80, 139, 44);
/* oklch */ color: oklch(57.6% 0.142 135.8);
Tailwind
colors: {
  custom: {
    50: '#86ad6a',
    500: '#508b2c',
    950: '#000000',
  },
}
SCSS
$custom: #508b2c;
$custom-light: #86ad6a;
$custom-dark: #000000;
JSON
{
  "hex": "#508b2c",
  "rgb": {
    "r": 80,
    "g": 139,
    "b": 44
  },
  "hsl": {
    "h": 97.263,
    "s": 51.913,
    "l": 35.882
  },
  "oklch": {
    "l": 0.57593,
    "c": 0.14166,
    "h": 135.8
  },
  "luminance": 0.20353
}

Semantic roles & 50–950 ramp

primary
#508B2C
secondary
#945FB4
accent
#4CDBA5
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #508B2C

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

Preview Lab → · Contrast checker → · Palette generator →

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