#508A2A#508A2A

#508A2A is a mid, vivid yellow-green. Relative luminance 0.201; OKLCH L 57.3% C 0.142 H 135.4°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#508A2A
RGBrgb(80, 138, 42)
HSLhsl(96, 53%, 35%)
HSVhsv(96, 70%, 54%)
CMYKcmyk(42%, 0%, 69.6%, 45.9%)
CIE-LABlab(51.89, -36.26, 43.64)
CIE-LCHlch(51.89, 56.74, 129.72°)
OKLaboklab(57.31% -0.1009 0.0996)
OKLCHoklch(57.31% 0.142 135.4)
XYZxyz(12.8144, 20.0489, 5.3847)
Luminance0.2005 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508A2A #642A8A
analogous
#808A2A #508A2A #2A8A34
triadic
#508A2A #2A508A #8A2A50
tetradic
#508A2A #2A808A #642A8A #8A342A
square
#508A2A #2A808A #642A8A #8A342A
split-complementary
#508A2A #342A8A #8A2A80
monochromatic
#1A2C0D #355B1C #508A2A #6BB938 #8CCF60

Accessibility & contrast

On white

4.19
#508A2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#508A2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508A2A
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508A2A#FFFFFF#000000##000000
##508A2A1.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F1C
Deuteranopia (green-blind)
#877A32
Tritanopia (blue-blind)
#4E8577
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #508a2a;
/* rgb */ color: rgb(80, 138, 42);
/* oklch */ color: oklch(57.3% 0.142 135.4);
Tailwind
colors: {
  custom: {
    50: '#86ac69',
    500: '#508a2a',
    950: '#000000',
  },
}
SCSS
$custom: #508a2a;
$custom-light: #86ac69;
$custom-dark: #000000;
JSON
{
  "hex": "#508a2a",
  "rgb": {
    "r": 80,
    "g": 138,
    "b": 42
  },
  "hsl": {
    "h": 96.25,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.57309,
    "c": 0.14179,
    "h": 135.4
  },
  "luminance": 0.2005
}

Semantic roles & 50–950 ramp

primary
#508A2A
secondary
#915BB4
accent
#4BDDA3
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #508A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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