#518E1F#518E1F

#518E1F is a mid, vivid yellow-green. Relative luminance 0.212; OKLCH L 58.3% C 0.154 H 134.5°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#518E1F
RGBrgb(81, 142, 31)
HSLhsl(93, 64%, 34%)
HSVhsv(93, 78%, 56%)
CMYKcmyk(43%, 0%, 78.2%, 44.3%)
CIE-LABlab(53.16, -38.44, 49.16)
CIE-LCHlch(53.16, 62.40, 128.02°)
OKLaboklab(58.34% -0.1077 0.1095)
OKLCHoklch(58.34% 0.154 134.5)
XYZxyz(13.3134, 21.1935, 4.6853)
Luminance0.2119 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#518E1F #5C1F8E
analogous
#898E1F #518E1F #1F8E25
triadic
#518E1F #1F518E #8E1F51
tetradic
#518E1F #1F898E #5C1F8E #8E251F
square
#518E1F #1F898E #5C1F8E #8E251F
split-complementary
#518E1F #251F8E #8E1F89
monochromatic
#182A09 #345C14 #518E1F #6EC02A #8DD94F

Accessibility & contrast

On white

4.01
#518E1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#518E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #518E1F
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##518E1F#FFFFFF#000000##000000
##518E1F1.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#948204
Deuteranopia (green-blind)
#8B7D2B
Tritanopia (blue-blind)
#508879
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #518e1f;
/* rgb */ color: rgb(81, 142, 31);
/* oklch */ color: oklch(58.3% 0.154 134.5);
Tailwind
colors: {
  custom: {
    50: '#88af64',
    500: '#518e1f',
    950: '#000000',
  },
}
SCSS
$custom: #518e1f;
$custom-light: #88af64;
$custom-dark: #000000;
JSON
{
  "hex": "#518e1f",
  "rgb": {
    "r": 81,
    "g": 142,
    "b": 31
  },
  "hsl": {
    "h": 92.973,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.58337,
    "c": 0.15359,
    "h": 134.5
  },
  "luminance": 0.21194
}

Semantic roles & 50–950 ramp

primary
#518E1F
secondary
#8A4DBB
accent
#41E79C
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #518E1F

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

Preview Lab → · Contrast checker → · Palette generator →

#518E1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva