#507B1F#507B1F

#507B1F is a mid, vivid yellow-green. Relative luminance 0.160; OKLCH L 53.2% C 0.129 H 131.5°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#507B1F
RGBrgb(80, 123, 31)
HSLhsl(88, 60%, 30%)
HSVhsv(88, 75%, 48%)
CMYKcmyk(35%, 0%, 74.8%, 51.8%)
CIE-LABlab(46.94, -30.31, 43.05)
CIE-LCHlch(46.94, 52.65, 125.15°)
OKLaboklab(53.23% -0.0856 0.0967)
OKLCHoklch(53.23% 0.129 131.5)
XYZxyz(10.6384, 15.9699, 3.8180)
Luminance0.1597 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#507B1F #4A1F7B
analogous
#7B781F #507B1F #227B1F
triadic
#507B1F #1F507B #7B1F50
tetradic
#507B1F #1F7B78 #4A1F7B #7B1F22
square
#507B1F #1F7B78 #4A1F7B #7B1F22
split-complementary
#507B1F #1F227B #781F7B
monochromatic
#101906 #304A13 #507B1F #70AC2B #8FD044

Accessibility & contrast

On white

5.01
#507B1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#507B1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #507B1F
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##507B1F#FFFFFF#000000##FFFFFF
##507B1F1.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#81710E
Deuteranopia (green-blind)
#7B6E28
Tritanopia (blue-blind)
#517669
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #507b1f;
/* rgb */ color: rgb(80, 123, 31);
/* oklch */ color: oklch(53.2% 0.129 131.5);
Tailwind
colors: {
  custom: {
    50: '#85a161',
    500: '#507b1f',
    950: '#000000',
  },
}
SCSS
$custom: #507b1f;
$custom-light: #85a161;
$custom-dark: #000000;
JSON
{
  "hex": "#507b1f",
  "rgb": {
    "r": 80,
    "g": 123,
    "b": 31
  },
  "hsl": {
    "h": 88.043,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.53233,
    "c": 0.12919,
    "h": 131.5
  },
  "luminance": 0.1597
}

Semantic roles & 50–950 ramp

primary
#507B1F
secondary
#7848AE
accent
#45E38F
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0B0F05
muted
#7C7E79

Preview Lab

Preview with #507B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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