#508B2B#508B2B

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

Color values

HEX#508B2B
RGBrgb(80, 139, 43)
HSLhsl(97, 53%, 36%)
HSVhsv(97, 69%, 55%)
CMYKcmyk(42.4%, 0%, 69.1%, 45.5%)
CIE-LABlab(52.22, -36.61, 43.57)
CIE-LCHlch(52.22, 56.91, 130.04°)
OKLaboklab(57.58% -0.1018 0.0996)
OKLCHoklch(57.58% 0.142 135.6)
XYZxyz(12.9766, 20.3444, 5.5281)
Luminance0.2034 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508B2B #662B8B
analogous
#808B2B #508B2B #2B8B36
triadic
#508B2B #2B508B #8B2B50
tetradic
#508B2B #2B808B #662B8B #8B362B
square
#508B2B #2B808B #662B8B #8B362B
split-complementary
#508B2B #362B8B #8B2B80
monochromatic
#1A2E0E #355C1D #508B2B #6BBA39 #8CCE62

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##508B2B#FFFFFF#000000##000000
##508B2B1.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)
#90801E
Deuteranopia (green-blind)
#887B33
Tritanopia (blue-blind)
#4E8678
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #508b2b;
/* rgb */ color: rgb(80, 139, 43);
/* oklch */ color: oklch(57.6% 0.142 135.6);
Tailwind
colors: {
  custom: {
    50: '#86ad6a',
    500: '#508b2b',
    950: '#000000',
  },
}
SCSS
$custom: #508b2b;
$custom-light: #86ad6a;
$custom-dark: #000000;
JSON
{
  "hex": "#508b2b",
  "rgb": {
    "r": 80,
    "g": 139,
    "b": 43
  },
  "hsl": {
    "h": 96.875,
    "s": 52.747,
    "l": 35.686
  },
  "oklch": {
    "l": 0.57584,
    "c": 0.14241,
    "h": 135.6
  },
  "luminance": 0.20345
}

Semantic roles & 50–950 ramp

primary
#508B2B
secondary
#935DB5
accent
#4CDCA4
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #508B2B

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

Preview Lab → · Contrast checker → · Palette generator →

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