#507F22#507F22

#507F22 is a mid, vivid yellow-green. Relative luminance 0.170; OKLCH L 54.3% C 0.133 H 132.7°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#507F22
RGBrgb(80, 127, 34)
HSLhsl(90, 58%, 32%)
HSVhsv(90, 73%, 50%)
CMYKcmyk(37%, 0%, 73.2%, 50.2%)
CIE-LABlab(48.26, -31.95, 43.19)
CIE-LCHlch(48.26, 53.72, 126.49°)
OKLaboklab(54.32% -0.0899 0.0975)
OKLCHoklch(54.32% 0.133 132.7)
XYZxyz(11.1862, 16.9992, 4.2049)
Luminance0.1700 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#507F22 #51227F
analogous
#7F7F22 #507F22 #227F23
triadic
#507F22 #22507F #7F2250
tetradic
#507F22 #227F7F #51227F #7F2322
square
#507F22 #227F7F #51227F #7F2322
split-complementary
#507F22 #23227F #7F227F
monochromatic
#131E08 #324F15 #507F22 #6EAF2F #8DCF4C

Accessibility & contrast

On white

4.77
#507F22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#507F22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #507F22
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##507F22#FFFFFF#000000##FFFFFF
##507F221.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847513
Deuteranopia (green-blind)
#7E712B
Tritanopia (blue-blind)
#517A6D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #507f22;
/* rgb */ color: rgb(80, 127, 34);
/* oklch */ color: oklch(54.3% 0.133 132.7);
Tailwind
colors: {
  custom: {
    50: '#85a463',
    500: '#507f22',
    950: '#000000',
  },
}
SCSS
$custom: #507f22;
$custom-light: #85a463;
$custom-dark: #000000;
JSON
{
  "hex": "#507f22",
  "rgb": {
    "r": 80,
    "g": 127,
    "b": 34
  },
  "hsl": {
    "h": 90.323,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.5432,
    "c": 0.13258,
    "h": 132.7
  },
  "luminance": 0.17
}

Semantic roles & 50–950 ramp

primary
#507F22
secondary
#7F4BB2
accent
#47E195
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B0F06
muted
#7C7F7A

Preview Lab

Preview with #507F22

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

Preview Lab → · Contrast checker → · Palette generator →

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