#518117#518117

#518117 is a mid, vivid yellow-green. Relative luminance 0.175; OKLCH L 54.8% C 0.141 H 131.8°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#518117
RGBrgb(81, 129, 23)
HSLhsl(87, 70%, 30%)
HSVhsv(87, 82%, 51%)
CMYKcmyk(37.2%, 0%, 82.2%, 49.4%)
CIE-LABlab(48.90, -33.16, 47.76)
CIE-LCHlch(48.90, 58.15, 124.78°)
OKLaboklab(54.84% -0.094 0.1053)
OKLCHoklch(54.84% 0.141 131.8)
XYZxyz(11.3981, 17.5112, 3.5899)
Luminance0.1751 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#518117 #471781
analogous
#817C17 #518117 #1C8117
triadic
#518117 #175181 #811751
tetradic
#518117 #17817C #471781 #81171C
square
#518117 #17817C #471781 #81171C
split-complementary
#518117 #171C81 #7C1781
monochromatic
#101A05 #304D0E #518117 #72B520 #91DB37

Accessibility & contrast

On white

4.66
#518117 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#518117 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #518117
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##518117#FFFFFF#000000##FFFFFF
##5181171.004.664.504.66
#FFFFFF4.661.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877700
Deuteranopia (green-blind)
#807323
Tritanopia (blue-blind)
#527B6E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #518117;
/* rgb */ color: rgb(81, 129, 23);
/* oklch */ color: oklch(54.8% 0.141 131.8);
Tailwind
colors: {
  custom: {
    50: '#87a65e',
    500: '#518117',
    950: '#000000',
  },
}
SCSS
$custom: #518117;
$custom-light: #87a65e;
$custom-dark: #000000;
JSON
{
  "hex": "#518117",
  "rgb": {
    "r": 81,
    "g": 129,
    "b": 23
  },
  "hsl": {
    "h": 87.17,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.54835,
    "c": 0.14116,
    "h": 131.8
  },
  "luminance": 0.17512
}

Semantic roles & 50–950 ramp

primary
#518117
secondary
#743EB5
accent
#3BED8C
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #518117

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

Preview Lab → · Contrast checker → · Palette generator →

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