#5B7328#5B7328

#5B7328 is a mid, moderate yellow-green. Relative luminance 0.146; OKLCH L 52.0% C 0.105 H 125.0°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#5B7328
RGBrgb(91, 115, 40)
HSLhsl(79, 48%, 30%)
HSVhsv(79, 65%, 45%)
CMYKcmyk(20.9%, 0%, 65.2%, 54.9%)
CIE-LABlab(45.14, -21.13, 37.50)
CIE-LCHlch(45.14, 43.04, 119.40°)
OKLaboklab(51.98% -0.0604 0.0862)
OKLCHoklch(51.98% 0.105 125)
XYZxyz(10.8282, 14.6387, 4.2622)
Luminance0.1464 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7328 #402873
analogous
#736528 #5B7328 #357328
triadic
#5B7328 #285B73 #73285B
tetradic
#5B7328 #287365 #402873 #732835
square
#5B7328 #287365 #402873 #732835
split-complementary
#5B7328 #283573 #652873
monochromatic
#131808 #374618 #5B7328 #7FA038 #9FC352

Accessibility & contrast

On white

5.35
#5B7328 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#5B7328 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7328
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7328#FFFFFF#000000##FFFFFF
##5B73281.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796C1F
Deuteranopia (green-blind)
#766B2D
Tritanopia (blue-blind)
#5F6E63
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5b7328;
/* rgb */ color: rgb(91, 115, 40);
/* oklch */ color: oklch(52.0% 0.105 125.0);
Tailwind
colors: {
  custom: {
    50: '#8c9b66',
    500: '#5b7328',
    950: '#000000',
  },
}
SCSS
$custom: #5b7328;
$custom-light: #8c9b66;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7328",
  "rgb": {
    "r": 91,
    "g": 115,
    "b": 40
  },
  "hsl": {
    "h": 79.2,
    "s": 48.387,
    "l": 30.392
  },
  "oklch": {
    "l": 0.51979,
    "c": 0.10522,
    "h": 125
  },
  "luminance": 0.14639
}

Semantic roles & 50–950 ramp

primary
#5B7328
secondary
#6C52A5
accent
#50D87B
background
#F8F9F6
surface
#F0F2EB
border
#CBCCC6
text
#0C0E06
muted
#7D7E7A

Preview Lab

Preview with #5B7328

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

Preview Lab → · Contrast checker → · Palette generator →

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