#5B7331#5B7331

#5B7331 is a mid, moderate yellow-green. Relative luminance 0.147; OKLCH L 52.1% C 0.097 H 126.2°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#5B7331
RGBrgb(91, 115, 49)
HSLhsl(82, 40%, 32%)
HSVhsv(82, 57%, 45%)
CMYKcmyk(20.9%, 0%, 57.4%, 54.9%)
CIE-LABlab(45.23, -20.27, 33.17)
CIE-LCHlch(45.23, 38.87, 121.42°)
OKLaboklab(52.09% -0.0571 0.078)
OKLCHoklch(52.09% 0.097 126.2)
XYZxyz(10.9995, 14.7072, 5.1644)
Luminance0.1471 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7331 #493173
analogous
#736A31 #5B7331 #3A7331
triadic
#5B7331 #315B73 #73315B
tetradic
#5B7331 #31736A #493173 #73313A
square
#5B7331 #31736A #493173 #73313A
split-complementary
#5B7331 #313A73 #6A3173
monochromatic
#171D0C #39481F #5B7331 #7D9E43 #9BBC62

Accessibility & contrast

On white

5.33
#5B7331 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#5B7331 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7331
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7331#FFFFFF#000000##FFFFFF
##5B73311.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796C2B
Deuteranopia (green-blind)
#756B35
Tritanopia (blue-blind)
#5E6E64
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5b7331;
/* rgb */ color: rgb(91, 115, 49);
/* oklch */ color: oklch(52.1% 0.097 126.2);
Tailwind
colors: {
  custom: {
    50: '#8b9b6b',
    500: '#5b7331',
    950: '#000000',
  },
}
SCSS
$custom: #5b7331;
$custom-light: #8b9b6b;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7331",
  "rgb": {
    "r": 91,
    "g": 115,
    "b": 49
  },
  "hsl": {
    "h": 81.818,
    "s": 40.244,
    "l": 32.157
  },
  "oklch": {
    "l": 0.52087,
    "c": 0.09668,
    "h": 126.2
  },
  "luminance": 0.14707
}

Semantic roles & 50–950 ramp

primary
#5B7331
secondary
#765CA4
accent
#58D083
background
#F8F9F6
surface
#F0F2EB
border
#CBCCC6
text
#0C0E07
muted
#7D7E7A

Preview Lab

Preview with #5B7331

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

Preview Lab → · Contrast checker → · Palette generator →

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