#5B8A1D#5B8A1D

#5B8A1D is a mid, vivid yellow-green. Relative luminance 0.205; OKLCH L 57.8% C 0.144 H 130.7°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#5B8A1D
RGBrgb(91, 138, 29)
HSLhsl(86, 65%, 33%)
HSVhsv(86, 79%, 54%)
CMYKcmyk(34.1%, 0%, 79%, 45.9%)
CIE-LABlab(52.39, -33.09, 49.28)
CIE-LCHlch(52.39, 59.36, 123.88°)
OKLaboklab(57.84% -0.0941 0.1092)
OKLCHoklch(57.84% 0.144 130.7)
XYZxyz(13.6245, 20.4893, 4.3991)
Luminance0.2049 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8A1D #4C1D8A
analogous
#8A831D #5B8A1D #248A1D
triadic
#5B8A1D #1D5B8A #8A1D5B
tetradic
#5B8A1D #1D8A83 #4C1D8A #8A1D24
square
#5B8A1D #1D8A83 #4C1D8A #8A1D24
split-complementary
#5B8A1D #1D248A #831D8A
monochromatic
#182508 #3A5712 #5B8A1D #7CBD28 #9BD949

Accessibility & contrast

On white

4.12
#5B8A1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#5B8A1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B8A1D
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8A1D#FFFFFF#000000##000000
##5B8A1D1.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F01
Deuteranopia (green-blind)
#8A7C28
Tritanopia (blue-blind)
#5D8476
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5b8a1d;
/* rgb */ color: rgb(91, 138, 29);
/* oklch */ color: oklch(57.8% 0.144 130.7);
Tailwind
colors: {
  custom: {
    50: '#8eac62',
    500: '#5b8a1d',
    950: '#000000',
  },
}
SCSS
$custom: #5b8a1d;
$custom-light: #8eac62;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8a1d",
  "rgb": {
    "r": 91,
    "g": 138,
    "b": 29
  },
  "hsl": {
    "h": 85.872,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.57841,
    "c": 0.14415,
    "h": 130.7
  },
  "luminance": 0.2049
}

Semantic roles & 50–950 ramp

primary
#5B8A1D
secondary
#7A48BB
accent
#40E888
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5B8A1D

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

Preview Lab → · Contrast checker → · Palette generator →

#5B8A1D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva