#5B901B#5B901B

#5B901B is a mid, vivid yellow-green. Relative luminance 0.223; OKLCH L 59.4% C 0.153 H 131.8°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#5B901B
RGBrgb(91, 144, 27)
HSLhsl(87, 68%, 34%)
HSVhsv(87, 81%, 56%)
CMYKcmyk(36.8%, 0%, 81.3%, 43.5%)
CIE-LABlab(54.29, -35.90, 51.70)
CIE-LCHlch(54.29, 62.94, 124.78°)
OKLaboklab(59.39% -0.1018 0.114)
OKLCHoklch(59.39% 0.153 131.8)
XYZxyz(14.4853, 22.2492, 4.5680)
Luminance0.2225 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B901B #501B90
analogous
#908A1B #5B901B #21901B
triadic
#5B901B #1B5B90 #901B5B
tetradic
#5B901B #1B908A #501B90 #901B21
square
#5B901B #1B908A #501B90 #901B21
split-complementary
#5B901B #1B2190 #8A1B90
monochromatic
#1A2908 #3A5C11 #5B901B #7CC425 #9ADD49

Accessibility & contrast

On white

3.85
#5B901B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#5B901B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B901B
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B901B#FFFFFF#000000##000000
##5B901B1.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#978400
Deuteranopia (green-blind)
#8F8028
Tritanopia (blue-blind)
#5C8A7B
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5b901b;
/* rgb */ color: rgb(91, 144, 27);
/* oklch */ color: oklch(59.4% 0.153 131.8);
Tailwind
colors: {
  custom: {
    50: '#8eb162',
    500: '#5b901b',
    950: '#000000',
  },
}
SCSS
$custom: #5b901b;
$custom-light: #8eb162;
$custom-dark: #000000;
JSON
{
  "hex": "#5b901b",
  "rgb": {
    "r": 91,
    "g": 144,
    "b": 27
  },
  "hsl": {
    "h": 87.179,
    "s": 68.421,
    "l": 33.529
  },
  "oklch": {
    "l": 0.59392,
    "c": 0.15282,
    "h": 131.8
  },
  "luminance": 0.2225
}

Semantic roles & 50–950 ramp

primary
#5B901B
secondary
#7E48BF
accent
#3DEB8C
background
#F9FAF6
surface
#F1F5EB
border
#CBCFC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5B901B

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

Preview Lab → · Contrast checker → · Palette generator →

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