#5B901C#5B901C

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

Color values

HEX#5B901C
RGBrgb(91, 144, 28)
HSLhsl(87, 67%, 34%)
HSVhsv(87, 81%, 56%)
CMYKcmyk(36.8%, 0%, 80.6%, 43.5%)
CIE-LABlab(54.30, -35.85, 51.39)
CIE-LCHlch(54.30, 62.66, 124.90°)
OKLaboklab(59.4% -0.1016 0.1135)
OKLCHoklch(59.4% 0.152 131.8)
XYZxyz(14.4971, 22.2539, 4.6300)
Luminance0.2225 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B901C #511C90
analogous
#908B1C #5B901C #21901C
triadic
#5B901C #1C5B90 #901C5B
tetradic
#5B901C #1C908B #511C90 #901C21
square
#5B901C #1C908B #511C90 #901C21
split-complementary
#5B901C #1C2190 #8B1C90
monochromatic
#1A2A08 #3B5D12 #5B901C #7BC326 #99DC4A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B901C#FFFFFF#000000##000000
##5B901C1.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)
#968400
Deuteranopia (green-blind)
#8F8029
Tritanopia (blue-blind)
#5C8A7B
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5b901c;
/* rgb */ color: rgb(91, 144, 28);
/* oklch */ color: oklch(59.4% 0.152 131.8);
Tailwind
colors: {
  custom: {
    50: '#8eb163',
    500: '#5b901c',
    950: '#000000',
  },
}
SCSS
$custom: #5b901c;
$custom-light: #8eb163;
$custom-dark: #000000;
JSON
{
  "hex": "#5b901c",
  "rgb": {
    "r": 91,
    "g": 144,
    "b": 28
  },
  "hsl": {
    "h": 87.414,
    "s": 67.442,
    "l": 33.725
  },
  "oklch": {
    "l": 0.59397,
    "c": 0.15232,
    "h": 131.8
  },
  "luminance": 0.22255
}

Semantic roles & 50–950 ramp

primary
#5B901C
secondary
#7F4ABE
accent
#3DEA8C
background
#F9FAF6
surface
#F1F5EB
border
#CBCFC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5B901C

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

Preview Lab → · Contrast checker → · Palette generator →

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