#5B882B#5B882B

#5B882B is a mid, vivid yellow-green. Relative luminance 0.200; OKLCH L 57.4% C 0.132 H 131.6°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#5B882B
RGBrgb(91, 136, 43)
HSLhsl(89, 52%, 35%)
HSVhsv(89, 68%, 53%)
CMYKcmyk(33.1%, 0%, 68.4%, 46.7%)
CIE-LABlab(51.84, -31.21, 43.35)
CIE-LCHlch(51.84, 53.41, 125.75°)
OKLaboklab(57.43% -0.0878 0.0989)
OKLCHoklch(57.43% 0.132 131.6)
XYZxyz(13.5544, 20.0064, 5.4325)
Luminance0.2001 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B882B #582B88
analogous
#88862B #5B882B #2D882B
triadic
#5B882B #2B5B88 #882B5B
tetradic
#5B882B #2B8886 #582B88 #882B2D
square
#5B882B #2B8886 #582B88 #882B2D
split-complementary
#5B882B #2B2D88 #862B88
monochromatic
#1D2B0E #3C5A1C #5B882B #7AB63A #98CD61

Accessibility & contrast

On white

4.20
#5B882B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#5B882B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B882B
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B882B#FFFFFF#000000##000000
##5B882B1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E1E
Deuteranopia (green-blind)
#887A33
Tritanopia (blue-blind)
#5C8275
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5b882b;
/* rgb */ color: rgb(91, 136, 43);
/* oklch */ color: oklch(57.4% 0.132 131.6);
Tailwind
colors: {
  custom: {
    50: '#8dab69',
    500: '#5b882b',
    950: '#000000',
  },
}
SCSS
$custom: #5b882b;
$custom-light: #8dab69;
$custom-dark: #000000;
JSON
{
  "hex": "#5b882b",
  "rgb": {
    "r": 91,
    "g": 136,
    "b": 43
  },
  "hsl": {
    "h": 89.032,
    "s": 51.955,
    "l": 35.098
  },
  "oklch": {
    "l": 0.5743,
    "c": 0.13228,
    "h": 131.6
  },
  "luminance": 0.20007
}

Semantic roles & 50–950 ramp

primary
#5B882B
secondary
#865CB3
accent
#4CDB92
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #5B882B

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

Preview Lab → · Contrast checker → · Palette generator →

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