#507F1C#507F1C

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

Color values

HEX#507F1C
RGBrgb(80, 127, 28)
HSLhsl(88, 64%, 30%)
HSVhsv(88, 78%, 50%)
CMYKcmyk(37%, 0%, 78%, 50.2%)
CIE-LABlab(48.22, -32.36, 45.43)
CIE-LCHlch(48.22, 55.78, 125.46°)
OKLaboklab(54.27% -0.0914 0.1012)
OKLCHoklch(54.27% 0.136 132.1)
XYZxyz(11.1071, 16.9676, 3.7882)
Luminance0.1697 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#507F1C #4B1C7F
analogous
#7F7C1C #507F1C #1E7F1C
triadic
#507F1C #1C507F #7F1C50
tetradic
#507F1C #1C7F7C #4B1C7F #7F1C1E
square
#507F1C #1C7F7C #4B1C7F #7F1C1E
split-complementary
#507F1C #1C1E7F #7C1C7F
monochromatic
#111B06 #304D11 #507F1C #70B127 #8ED540

Accessibility & contrast

On white

4.78
#507F1C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#507F1C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #507F1C
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##507F1C#FFFFFF#000000##FFFFFF
##507F1C1.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857506
Deuteranopia (green-blind)
#7E7126
Tritanopia (blue-blind)
#517A6C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #507f1c;
/* rgb */ color: rgb(80, 127, 28);
/* oklch */ color: oklch(54.3% 0.136 132.1);
Tailwind
colors: {
  custom: {
    50: '#85a460',
    500: '#507f1c',
    950: '#000000',
  },
}
SCSS
$custom: #507f1c;
$custom-light: #85a460;
$custom-dark: #000000;
JSON
{
  "hex": "#507f1c",
  "rgb": {
    "r": 80,
    "g": 127,
    "b": 28
  },
  "hsl": {
    "h": 88.485,
    "s": 63.871,
    "l": 30.392
  },
  "oklch": {
    "l": 0.54274,
    "c": 0.13641,
    "h": 132.1
  },
  "luminance": 0.16968
}

Semantic roles & 50–950 ramp

primary
#507F1C
secondary
#7944B3
accent
#41E790
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #507F1C

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

Preview Lab → · Contrast checker → · Palette generator →

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