#508B2A#508B2A

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

Color values

HEX#508B2A
RGBrgb(80, 139, 42)
HSLhsl(96, 54%, 35%)
HSVhsv(96, 70%, 55%)
CMYKcmyk(42.4%, 0%, 69.8%, 45.5%)
CIE-LABlab(52.22, -36.70, 43.99)
CIE-LCHlch(52.22, 57.28, 129.84°)
OKLaboklab(57.57% -0.1021 0.1003)
OKLCHoklch(57.57% 0.143 135.5)
XYZxyz(12.9585, 20.3372, 5.4327)
Luminance0.2034 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508B2A #652A8B
analogous
#808B2A #508B2A #2A8B35
triadic
#508B2A #2A508B #8B2A50
tetradic
#508B2A #2A808B #652A8B #8B352A
square
#508B2A #2A808B #652A8B #8B352A
split-complementary
#508B2A #352A8B #8B2A80
monochromatic
#1A2D0E #355C1C #508B2A #6BBA38 #8CCF60

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##508B2A#FFFFFF#000000##000000
##508B2A1.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)
#90801C
Deuteranopia (green-blind)
#887B33
Tritanopia (blue-blind)
#4E8677
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #508b2a;
/* rgb */ color: rgb(80, 139, 42);
/* oklch */ color: oklch(57.6% 0.143 135.5);
Tailwind
colors: {
  custom: {
    50: '#86ad69',
    500: '#508b2a',
    950: '#000000',
  },
}
SCSS
$custom: #508b2a;
$custom-light: #86ad69;
$custom-dark: #000000;
JSON
{
  "hex": "#508b2a",
  "rgb": {
    "r": 80,
    "g": 139,
    "b": 42
  },
  "hsl": {
    "h": 96.495,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.57574,
    "c": 0.14315,
    "h": 135.5
  },
  "luminance": 0.20338
}

Semantic roles & 50–950 ramp

primary
#508B2A
secondary
#925CB5
accent
#4BDDA4
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #508B2A

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

Preview Lab → · Contrast checker → · Palette generator →

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