#5B831B#5B831B

#5B831B is a mid, vivid yellow-green. Relative luminance 0.185; OKLCH L 56.0% C 0.136 H 129.0°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#5B831B
RGBrgb(91, 131, 27)
HSLhsl(83, 66%, 31%)
HSVhsv(83, 79%, 51%)
CMYKcmyk(30.5%, 0%, 79.4%, 48.6%)
CIE-LABlab(50.14, -29.95, 47.83)
CIE-LCHlch(50.14, 56.43, 122.05°)
OKLaboklab(56.01% -0.0857 0.1059)
OKLCHoklch(56.01% 0.136 129)
XYZxyz(12.6285, 18.5355, 3.9491)
Luminance0.1854 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B831B #431B83
analogous
#83771B #5B831B #27831B
triadic
#5B831B #1B5B83 #831B5B
tetradic
#5B831B #1B8377 #431B83 #831B27
square
#5B831B #1B8377 #431B83 #831B27
split-complementary
#5B831B #1B2783 #771B83
monochromatic
#151E06 #385011 #5B831B #7EB625 #9ED841

Accessibility & contrast

On white

4.46
#5B831B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#5B831B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B831B
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B831B#FFFFFF#000000##000000
##5B831B1.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7901
Deuteranopia (green-blind)
#847626
Tritanopia (blue-blind)
#5E7D70
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5b831b;
/* rgb */ color: rgb(91, 131, 27);
/* oklch */ color: oklch(56.0% 0.136 129.0);
Tailwind
colors: {
  custom: {
    50: '#8da761',
    500: '#5b831b',
    950: '#000000',
  },
}
SCSS
$custom: #5b831b;
$custom-light: #8da761;
$custom-dark: #000000;
JSON
{
  "hex": "#5b831b",
  "rgb": {
    "r": 91,
    "g": 131,
    "b": 27
  },
  "hsl": {
    "h": 83.077,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.56007,
    "c": 0.13619,
    "h": 129
  },
  "luminance": 0.18536
}

Semantic roles & 50–950 ramp

primary
#5B831B
secondary
#7043B6
accent
#3FE980
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0D0F05
muted
#7D7F7A

Preview Lab

Preview with #5B831B

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

Preview Lab → · Contrast checker → · Palette generator →

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