#507B2F#507B2F

#507B2F is a mid, moderate yellow-green. Relative luminance 0.161; OKLCH L 53.4% C 0.117 H 133.7°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#507B2F
RGBrgb(80, 123, 47)
HSLhsl(94, 45%, 33%)
HSVhsv(94, 62%, 48%)
CMYKcmyk(35%, 0%, 61.8%, 51.8%)
CIE-LABlab(47.07, -28.92, 36.11)
CIE-LCHlch(47.07, 46.26, 128.69°)
OKLaboklab(53.39% -0.0805 0.0843)
OKLCHoklch(53.39% 0.117 133.7)
XYZxyz(10.9041, 16.0762, 5.2173)
Luminance0.1608 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#507B2F #5A2F7B
analogous
#767B2F #507B2F #2F7B34
triadic
#507B2F #2F507B #7B2F50
tetradic
#507B2F #2F767B #5A2F7B #7B342F
square
#507B2F #2F767B #5A2F7B #7B342F
split-complementary
#507B2F #342F7B #7B2F76
monochromatic
#16220D #334F1E #507B2F #6DA740 #8CC362

Accessibility & contrast

On white

4.98
#507B2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#507B2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #507B2F
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##507B2F#FFFFFF#000000##FFFFFF
##507B2F1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807227
Deuteranopia (green-blind)
#7A6E35
Tritanopia (blue-blind)
#50766B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #507b2f;
/* rgb */ color: rgb(80, 123, 47);
/* oklch */ color: oklch(53.4% 0.117 133.7);
Tailwind
colors: {
  custom: {
    50: '#84a16a',
    500: '#507b2f',
    950: '#000000',
  },
}
SCSS
$custom: #507b2f;
$custom-light: #84a16a;
$custom-dark: #000000;
JSON
{
  "hex": "#507b2f",
  "rgb": {
    "r": 80,
    "g": 123,
    "b": 47
  },
  "hsl": {
    "h": 93.947,
    "s": 44.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.53391,
    "c": 0.11652,
    "h": 133.7
  },
  "luminance": 0.16077
}

Semantic roles & 50–950 ramp

primary
#507B2F
secondary
#885CAA
accent
#53D49C
background
#F8F9F6
surface
#EFF2EB
border
#CACCC6
text
#0B0F07
muted
#7C7E7A

Preview Lab

Preview with #507B2F

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

Preview Lab → · Contrast checker → · Palette generator →

#507B2F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva