#507F2C#507F2C

#507F2C is a mid, vivid yellow-green. Relative luminance 0.171; OKLCH L 54.4% C 0.125 H 134.0°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#507F2C
RGBrgb(80, 127, 44)
HSLhsl(94, 49%, 34%)
HSVhsv(94, 65%, 50%)
CMYKcmyk(37%, 0%, 65.4%, 50.2%)
CIE-LABlab(48.34, -31.10, 38.94)
CIE-LCHlch(48.34, 49.84, 128.61°)
OKLaboklab(54.42% -0.0867 0.0899)
OKLCHoklch(54.42% 0.125 134)
XYZxyz(11.3520, 17.0656, 5.0782)
Luminance0.1707 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#507F2C #5B2C7F
analogous
#797F2C #507F2C #2C7F31
triadic
#507F2C #2C507F #7F2C50
tetradic
#507F2C #2C797F #5B2C7F #7F312C
square
#507F2C #2C797F #5B2C7F #7F312C
split-complementary
#507F2C #312C7F #7F2C79
monochromatic
#17240D #33521C #507F2C #6DAC3C #8CC75E

Accessibility & contrast

On white

4.76
#507F2C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#507F2C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #507F2C
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##507F2C#FFFFFF#000000##FFFFFF
##507F2C1.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847522
Deuteranopia (green-blind)
#7D7133
Tritanopia (blue-blind)
#507A6E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #507f2c;
/* rgb */ color: rgb(80, 127, 44);
/* oklch */ color: oklch(54.4% 0.125 134.0);
Tailwind
colors: {
  custom: {
    50: '#85a469',
    500: '#507f2c',
    950: '#000000',
  },
}
SCSS
$custom: #507f2c;
$custom-light: #85a469;
$custom-dark: #000000;
JSON
{
  "hex": "#507f2c",
  "rgb": {
    "r": 80,
    "g": 127,
    "b": 44
  },
  "hsl": {
    "h": 93.976,
    "s": 48.538,
    "l": 33.529
  },
  "oklch": {
    "l": 0.54415,
    "c": 0.12494,
    "h": 134
  },
  "luminance": 0.17066
}

Semantic roles & 50–950 ramp

primary
#507F2C
secondary
#8959AD
accent
#50D89D
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F06
muted
#7C7F7A

Preview Lab

Preview with #507F2C

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

Preview Lab → · Contrast checker → · Palette generator →

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