#5B801C#5B801C

#5B801C is a mid, vivid yellow-green. Relative luminance 0.177; OKLCH L 55.2% C 0.132 H 128.3°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#5B801C
RGBrgb(91, 128, 28)
HSLhsl(82, 64%, 31%)
HSVhsv(82, 78%, 50%)
CMYKcmyk(28.9%, 0%, 78.1%, 49.8%)
CIE-LABlab(49.19, -28.46, 46.58)
CIE-LCHlch(49.19, 54.59, 121.42°)
OKLaboklab(55.23% -0.0816 0.1034)
OKLCHoklch(55.23% 0.132 128.3)
XYZxyz(12.2432, 17.7460, 3.8787)
Luminance0.1775 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B801C #411C80
analogous
#80731C #5B801C #29801C
triadic
#5B801C #1C5B80 #801C5B
tetradic
#5B801C #1C8073 #411C80 #801C29
square
#5B801C #1C8073 #411C80 #801C29
split-complementary
#5B801C #1C2980 #731C80
monochromatic
#141C06 #374E11 #5B801C #7FB227 #9ED541

Accessibility & contrast

On white

4.62
#5B801C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#5B801C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5B801C
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B801C#FFFFFF#000000##FFFFFF
##5B801C1.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877705
Deuteranopia (green-blind)
#827426
Tritanopia (blue-blind)
#5E7A6D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5b801c;
/* rgb */ color: rgb(91, 128, 28);
/* oklch */ color: oklch(55.2% 0.132 128.3);
Tailwind
colors: {
  custom: {
    50: '#8da561',
    500: '#5b801c',
    950: '#000000',
  },
}
SCSS
$custom: #5b801c;
$custom-light: #8da561;
$custom-dark: #000000;
JSON
{
  "hex": "#5b801c",
  "rgb": {
    "r": 91,
    "g": 128,
    "b": 28
  },
  "hsl": {
    "h": 82.2,
    "s": 64.103,
    "l": 30.588
  },
  "oklch": {
    "l": 0.55234,
    "c": 0.13171,
    "h": 128.3
  },
  "luminance": 0.17746
}

Semantic roles & 50–950 ramp

primary
#5B801C
secondary
#6D44B3
accent
#41E77E
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0D0F05
muted
#7D7F79

Preview Lab

Preview with #5B801C

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

Preview Lab → · Contrast checker → · Palette generator →

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