#5B901F#5B901F

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

Color values

HEX#5B901F
RGBrgb(91, 144, 31)
HSLhsl(88, 65%, 34%)
HSVhsv(88, 78%, 56%)
CMYKcmyk(36.8%, 0%, 78.5%, 43.5%)
CIE-LABlab(54.31, -35.69, 50.43)
CIE-LCHlch(54.31, 61.78, 125.28°)
OKLaboklab(59.41% -0.1009 0.112)
OKLCHoklch(59.41% 0.151 132)
XYZxyz(14.5348, 22.2690, 4.8286)
Luminance0.2227 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B901F #541F90
analogous
#908D1F #5B901F #22901F
triadic
#5B901F #1F5B90 #901F5B
tetradic
#5B901F #1F908D #541F90 #901F22
square
#5B901F #1F908D #541F90 #901F22
split-complementary
#5B901F #1F2290 #8D1F90
monochromatic
#1B2B09 #3B5E14 #5B901F #7BC22A #99D950

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B901F#FFFFFF#000000##000000
##5B901F1.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)
#968402
Deuteranopia (green-blind)
#8F802B
Tritanopia (blue-blind)
#5C8A7B
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5b901f;
/* rgb */ color: rgb(91, 144, 31);
/* oklch */ color: oklch(59.4% 0.151 132.0);
Tailwind
colors: {
  custom: {
    50: '#8eb164',
    500: '#5b901f',
    950: '#000000',
  },
}
SCSS
$custom: #5b901f;
$custom-light: #8eb164;
$custom-dark: #000000;
JSON
{
  "hex": "#5b901f",
  "rgb": {
    "r": 91,
    "g": 144,
    "b": 31
  },
  "hsl": {
    "h": 88.142,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.59415,
    "c": 0.15076,
    "h": 132
  },
  "luminance": 0.2227
}

Semantic roles & 50–950 ramp

primary
#5B901F
secondary
#824EBC
accent
#40E88F
background
#F9FAF6
surface
#F1F5EB
border
#CBCFC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5B901F

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

Preview Lab → · Contrast checker → · Palette generator →

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