#507311#507311

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

Color values

HEX#507311
RGBrgb(80, 115, 17)
HSLhsl(81, 74%, 26%)
HSVhsv(81, 85%, 45%)
CMYKcmyk(30.4%, 0%, 85.2%, 54.9%)
CIE-LABlab(44.24, -27.30, 45.32)
CIE-LCHlch(44.24, 52.91, 121.06°)
OKLaboklab(51.01% -0.0786 0.0992)
OKLCHoklch(51.01% 0.127 128.4)
XYZxyz(9.5402, 14.0072, 2.7312)
Luminance0.1401 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#507311 #341173
analogous
#736511 #507311 #1F7311
triadic
#507311 #115073 #731150
tetradic
#507311 #117365 #341173 #73111F
square
#507311 #117365 #341173 #73111F
split-complementary
#507311 #111F73 #651173
monochromatic
#131B04 #2B3E09 #507311 #75A819 #9ADE21

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##507311#FFFFFF#000000##FFFFFF
##5073111.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)
#74681C
Tritanopia (blue-blind)
#536D61
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #507311;
/* rgb */ color: rgb(80, 115, 17);
/* oklch */ color: oklch(51.0% 0.127 128.4);
Tailwind
colors: {
  custom: {
    50: '#859b5a',
    500: '#507311',
    950: '#000000',
  },
}
SCSS
$custom: #507311;
$custom-light: #859b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#507311",
  "rgb": {
    "r": 80,
    "g": 115,
    "b": 17
  },
  "hsl": {
    "h": 81.429,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.51014,
    "c": 0.12651,
    "h": 128.4
  },
  "luminance": 0.14007
}

Semantic roles & 50–950 ramp

primary
#507311
secondary
#5F36AA
accent
#37F179
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #507311

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

Preview Lab → · Contrast checker → · Palette generator →

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