#5B8418#5B8418

#5B8418 is a mid, vivid yellow-green. Relative luminance 0.188; OKLCH L 56.2% C 0.139 H 129.1°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#5B8418
RGBrgb(91, 132, 24)
HSLhsl(83, 69%, 31%)
HSVhsv(83, 82%, 52%)
CMYKcmyk(31.1%, 0%, 81.8%, 48.2%)
CIE-LABlab(50.44, -30.57, 49.08)
CIE-LCHlch(50.44, 57.82, 121.92°)
OKLaboklab(56.25% -0.0876 0.108)
OKLCHoklch(56.25% 0.139 129.1)
XYZxyz(12.7305, 18.7923, 3.8205)
Luminance0.1879 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8418 #411884
analogous
#847718 #5B8418 #258418
triadic
#5B8418 #185B84 #84185B
tetradic
#5B8418 #188477 #411884 #841825
square
#5B8418 #188477 #411884 #841825
split-complementary
#5B8418 #182584 #771884
monochromatic
#141C05 #37500F #5B8418 #7FB821 #9EDB3B

Accessibility & contrast

On white

4.41
#5B8418 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#5B8418 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B8418
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8418#FFFFFF#000000##000000
##5B84181.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#857724
Tritanopia (blue-blind)
#5E7E70
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5b8418;
/* rgb */ color: rgb(91, 132, 24);
/* oklch */ color: oklch(56.2% 0.139 129.1);
Tailwind
colors: {
  custom: {
    50: '#8da85f',
    500: '#5b8418',
    950: '#000000',
  },
}
SCSS
$custom: #5b8418;
$custom-light: #8da85f;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8418",
  "rgb": {
    "r": 91,
    "g": 132,
    "b": 24
  },
  "hsl": {
    "h": 82.778,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.56249,
    "c": 0.13905,
    "h": 129.1
  },
  "luminance": 0.18793
}

Semantic roles & 50–950 ramp

primary
#5B8418
secondary
#6D40B8
accent
#3CEC7F
background
#F9FAF5
surface
#F1F4EA
border
#CBCEC6
text
#0D0F05
muted
#7E7F79

Preview Lab

Preview with #5B8418

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

Preview Lab → · Contrast checker → · Palette generator →

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