#5B8918#5B8918

#5B8918 is a mid, vivid yellow-green. Relative luminance 0.202; OKLCH L 57.6% C 0.145 H 130.2°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#5B8918
RGBrgb(91, 137, 24)
HSLhsl(84, 70%, 32%)
HSVhsv(84, 82%, 54%)
CMYKcmyk(33.6%, 0%, 82.5%, 46.3%)
CIE-LABlab(52.04, -32.89, 50.54)
CIE-LCHlch(52.04, 60.30, 123.06°)
OKLaboklab(57.55% -0.0939 0.1111)
OKLCHoklch(57.55% 0.145 130.2)
XYZxyz(13.4248, 20.1810, 4.0520)
Luminance0.2018 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8918 #461889
analogous
#897F18 #5B8918 #238918
triadic
#5B8918 #185B89 #89185B
tetradic
#5B8918 #18897F #461889 #891823
square
#5B8918 #18897F #461889 #891823
split-complementary
#5B8918 #182389 #7F1889
monochromatic
#162106 #38550F #5B8918 #7EBD21 #9CDD3E

Accessibility & contrast

On white

4.17
#5B8918 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#5B8918 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B8918
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8918#FFFFFF#000000##000000
##5B89181.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#907E00
Deuteranopia (green-blind)
#897B25
Tritanopia (blue-blind)
#5D8374
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5b8918;
/* rgb */ color: rgb(91, 137, 24);
/* oklch */ color: oklch(57.6% 0.145 130.2);
Tailwind
colors: {
  custom: {
    50: '#8eab60',
    500: '#5b8918',
    950: '#000000',
  },
}
SCSS
$custom: #5b8918;
$custom-light: #8eab60;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8918",
  "rgb": {
    "r": 91,
    "g": 137,
    "b": 24
  },
  "hsl": {
    "h": 84.425,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.57551,
    "c": 0.14542,
    "h": 130.2
  },
  "luminance": 0.20181
}

Semantic roles & 50–950 ramp

primary
#5B8918
secondary
#7340BD
accent
#3BED83
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1005
muted
#7E7F7A

Preview Lab

Preview with #5B8918

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

Preview Lab → · Contrast checker → · Palette generator →

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