#507212#507212

#507212 is a mid, vivid yellow-green. Relative luminance 0.138; OKLCH L 50.8% C 0.125 H 128.2°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#507212
RGBrgb(80, 114, 18)
HSLhsl(81, 73%, 26%)
HSVhsv(81, 84%, 45%)
CMYKcmyk(29.8%, 0%, 84.2%, 55.3%)
CIE-LABlab(43.92, -26.77, 44.73)
CIE-LCHlch(43.92, 52.13, 120.90°)
OKLaboklab(50.75% -0.0771 0.0981)
OKLCHoklch(50.75% 0.125 128.2)
XYZxyz(9.4348, 13.7835, 2.7356)
Luminance0.1378 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#507212 #341272
analogous
#726412 #507212 #207212
triadic
#507212 #125072 #721250
tetradic
#507212 #127264 #341272 #721220
square
#507212 #127264 #341272 #721220
split-complementary
#507212 #122072 #641272
monochromatic
#131A04 #2B3D0A #507212 #75A71A #9ADC23

Accessibility & contrast

On white

5.59
#507212 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#507212 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #507212
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##507212#FFFFFF#000000##FFFFFF
##5072121.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786900
Deuteranopia (green-blind)
#73671D
Tritanopia (blue-blind)
#536C61
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #507212;
/* rgb */ color: rgb(80, 114, 18);
/* oklch */ color: oklch(50.8% 0.125 128.2);
Tailwind
colors: {
  custom: {
    50: '#859a5a',
    500: '#507212',
    950: '#000000',
  },
}
SCSS
$custom: #507212;
$custom-light: #859a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#507212",
  "rgb": {
    "r": 80,
    "g": 114,
    "b": 18
  },
  "hsl": {
    "h": 81.25,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.50754,
    "c": 0.12474,
    "h": 128.2
  },
  "luminance": 0.13784
}

Semantic roles & 50–950 ramp

primary
#507212
secondary
#5F37A9
accent
#38EF79
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #507212

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

Preview Lab → · Contrast checker → · Palette generator →

#507212 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva