#508A2C#508A2C

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

Color values

HEX#508A2C
RGBrgb(80, 138, 44)
HSLhsl(97, 52%, 36%)
HSVhsv(97, 68%, 54%)
CMYKcmyk(42%, 0%, 68.1%, 45.9%)
CIE-LABlab(51.91, -36.08, 42.81)
CIE-LCHlch(51.91, 55.98, 130.13°)
OKLaboklab(57.33% -0.1003 0.0981)
OKLCHoklch(57.33% 0.14 135.6)
XYZxyz(12.8511, 20.0636, 5.5779)
Luminance0.2006 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508A2C #662C8A
analogous
#7F8A2C #508A2C #2C8A37
triadic
#508A2C #2C508A #8A2C50
tetradic
#508A2C #2C7F8A #662C8A #8A372C
square
#508A2C #2C7F8A #662C8A #8A372C
split-complementary
#508A2C #372C8A #8A2C7F
monochromatic
#1A2D0E #355C1D #508A2C #6BB83B #8CCD63

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##508A2C#FFFFFF#000000##000000
##508A2C1.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)
#8F7F1F
Deuteranopia (green-blind)
#877A34
Tritanopia (blue-blind)
#4E8577
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #508a2c;
/* rgb */ color: rgb(80, 138, 44);
/* oklch */ color: oklch(57.3% 0.140 135.6);
Tailwind
colors: {
  custom: {
    50: '#86ac6a',
    500: '#508a2c',
    950: '#000000',
  },
}
SCSS
$custom: #508a2c;
$custom-light: #86ac6a;
$custom-dark: #000000;
JSON
{
  "hex": "#508a2c",
  "rgb": {
    "r": 80,
    "g": 138,
    "b": 44
  },
  "hsl": {
    "h": 97.021,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.57328,
    "c": 0.14029,
    "h": 135.6
  },
  "luminance": 0.20064
}

Semantic roles & 50–950 ramp

primary
#508A2C
secondary
#935EB4
accent
#4DDBA5
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B1007
muted
#7C7F7A

Preview Lab

Preview with #508A2C

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

Preview Lab → · Contrast checker → · Palette generator →

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