#507F12#507F12

#507F12 is a mid, vivid yellow-green. Relative luminance 0.169; OKLCH L 54.2% C 0.141 H 131.4°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#507F12
RGBrgb(80, 127, 18)
HSLhsl(86, 75%, 28%)
HSVhsv(86, 86%, 50%)
CMYKcmyk(37%, 0%, 85.8%, 50.2%)
CIE-LABlab(48.17, -32.88, 48.53)
CIE-LCHlch(48.17, 58.62, 124.11°)
OKLaboklab(54.22% -0.0935 0.1061)
OKLCHoklch(54.22% 0.141 131.4)
XYZxyz(11.0067, 16.9274, 3.2595)
Luminance0.1693 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#507F12 #41127F
analogous
#7F7712 #507F12 #197F12
triadic
#507F12 #12507F #7F1250
tetradic
#507F12 #127F77 #41127F #7F1219
square
#507F12 #127F77 #41127F #7F1219
split-complementary
#507F12 #12197F #77127F
monochromatic
#111B04 #2E490A #507F12 #72B51A #92E12B

Accessibility & contrast

On white

4.79
#507F12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #507F12
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##507F12#FFFFFF#000000##FFFFFF
##507F121.004.794.394.79
#FFFFFF4.791.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857500
Deuteranopia (green-blind)
#7F711F
Tritanopia (blue-blind)
#52796C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #507f12;
/* rgb */ color: rgb(80, 127, 18);
/* oklch */ color: oklch(54.2% 0.141 131.4);
Tailwind
colors: {
  custom: {
    50: '#86a45c',
    500: '#507f12',
    950: '#000000',
  },
}
SCSS
$custom: #507f12;
$custom-light: #86a45c;
$custom-dark: #000000;
JSON
{
  "hex": "#507f12",
  "rgb": {
    "r": 80,
    "g": 127,
    "b": 18
  },
  "hsl": {
    "h": 85.872,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.54217,
    "c": 0.14146,
    "h": 131.4
  },
  "luminance": 0.16928
}

Semantic roles & 50–950 ramp

primary
#507F12
secondary
#6E38B5
accent
#36F287
background
#F8FAF5
surface
#F0F4E9
border
#CBCEC5
text
#0C0F04
muted
#7D7F79

Preview Lab

Preview with #507F12

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

Preview Lab → · Contrast checker → · Palette generator →

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