#507312#507312

#507312 is a mid, vivid yellow-green. Relative luminance 0.140; OKLCH L 51.0% C 0.126 H 128.4°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#507312
RGBrgb(80, 115, 18)
HSLhsl(82, 73%, 26%)
HSVhsv(82, 84%, 45%)
CMYKcmyk(30.4%, 0%, 84.3%, 54.9%)
CIE-LABlab(44.25, -27.26, 45.03)
CIE-LCHlch(44.25, 52.64, 121.19°)
OKLaboklab(51.02% -0.0784 0.0987)
OKLCHoklch(51.02% 0.126 128.4)
XYZxyz(9.5482, 14.0104, 2.7734)
Luminance0.1401 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#507312 #351273
analogous
#736512 #507312 #207312
triadic
#507312 #125073 #731250
tetradic
#507312 #127365 #351273 #731220
square
#507312 #127365 #351273 #731220
split-complementary
#507312 #122073 #651273
monochromatic
#121A04 #2B3E0A #507312 #75A81A #9ADD23

Accessibility & contrast

On white

5.52
#507312 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#507312 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #507312
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##507312#FFFFFF#000000##FFFFFF
##5073121.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A00
Deuteranopia (green-blind)
#74681D
Tritanopia (blue-blind)
#536D61
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #507312;
/* rgb */ color: rgb(80, 115, 18);
/* oklch */ color: oklch(51.0% 0.126 128.4);
Tailwind
colors: {
  custom: {
    50: '#859b5a',
    500: '#507312',
    950: '#000000',
  },
}
SCSS
$custom: #507312;
$custom-light: #859b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#507312",
  "rgb": {
    "r": 80,
    "g": 115,
    "b": 18
  },
  "hsl": {
    "h": 81.649,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.5102,
    "c": 0.12604,
    "h": 128.4
  },
  "luminance": 0.14011
}

Semantic roles & 50–950 ramp

primary
#507312
secondary
#6037AA
accent
#38F07A
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #507312

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

Preview Lab → · Contrast checker → · Palette generator →

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