#518B23#518B23

#518B23 is a mid, vivid yellow-green. Relative luminance 0.203; OKLCH L 57.6% C 0.147 H 134.5°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#518B23
RGBrgb(81, 139, 35)
HSLhsl(93, 60%, 34%)
HSVhsv(93, 75%, 55%)
CMYKcmyk(41.7%, 0%, 74.8%, 45.5%)
CIE-LABlab(52.21, -36.88, 46.79)
CIE-LCHlch(52.21, 59.58, 128.24°)
OKLaboklab(57.57% -0.1032 0.1052)
OKLCHoklch(57.57% 0.147 134.5)
XYZxyz(12.9291, 20.3352, 4.8336)
Luminance0.2034 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#518B23 #5D238B
analogous
#858B23 #518B23 #238B29
triadic
#518B23 #23518B #8B2351
tetradic
#518B23 #23858B #5D238B #8B2923
square
#518B23 #23858B #5D238B #8B2923
split-complementary
#518B23 #29238B #8B2385
monochromatic
#18290A #355A17 #518B23 #6DBC2F #8DD454

Accessibility & contrast

On white

4.14
#518B23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#518B23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #518B23
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##518B23#FFFFFF#000000##000000
##518B231.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#90800F
Deuteranopia (green-blind)
#897B2D
Tritanopia (blue-blind)
#508577
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #518b23;
/* rgb */ color: rgb(81, 139, 35);
/* oklch */ color: oklch(57.6% 0.147 134.5);
Tailwind
colors: {
  custom: {
    50: '#87ad65',
    500: '#518b23',
    950: '#000000',
  },
}
SCSS
$custom: #518b23;
$custom-light: #87ad65;
$custom-dark: #000000;
JSON
{
  "hex": "#518b23",
  "rgb": {
    "r": 81,
    "g": 139,
    "b": 35
  },
  "hsl": {
    "h": 93.462,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.57569,
    "c": 0.14735,
    "h": 134.5
  },
  "luminance": 0.20336
}

Semantic roles & 50–950 ramp

primary
#518B23
secondary
#8B52B8
accent
#45E39D
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #518B23

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

Preview Lab → · Contrast checker → · Palette generator →

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