#5B7311#5B7311

#5B7311 is a mid, vivid yellow-green. Relative luminance 0.145; OKLCH L 51.8% C 0.121 H 123.4°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#5B7311
RGBrgb(91, 115, 17)
HSLhsl(75, 74%, 26%)
HSVhsv(75, 85%, 45%)
CMYKcmyk(20.9%, 0%, 85.2%, 54.9%)
CIE-LABlab(44.98, -22.57, 46.25)
CIE-LCHlch(44.98, 51.47, 116.01°)
OKLaboklab(51.8% -0.0664 0.1008)
OKLCHoklch(51.8% 0.121 123.4)
XYZxyz(10.5464, 14.5260, 2.7784)
Luminance0.1453 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7311 #291173
analogous
#735A11 #5B7311 #2A7311
triadic
#5B7311 #115B73 #73115B
tetradic
#5B7311 #11735A #291173 #73112A
square
#5B7311 #11735A #291173 #73112A
split-complementary
#5B7311 #112A73 #5A1173
monochromatic
#151B04 #313E09 #5B7311 #85A819 #AFDE21

Accessibility & contrast

On white

5.38
#5B7311 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#5B7311 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7311
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7311#FFFFFF#000000##FFFFFF
##5B73111.005.383.915.38
#FFFFFF5.381.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B00
Deuteranopia (green-blind)
#776A1C
Tritanopia (blue-blind)
#606D61
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5b7311;
/* rgb */ color: rgb(91, 115, 17);
/* oklch */ color: oklch(51.8% 0.121 123.4);
Tailwind
colors: {
  custom: {
    50: '#8d9b5a',
    500: '#5b7311',
    950: '#000000',
  },
}
SCSS
$custom: #5b7311;
$custom-light: #8d9b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7311",
  "rgb": {
    "r": 91,
    "g": 115,
    "b": 17
  },
  "hsl": {
    "h": 74.694,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.51802,
    "c": 0.1207,
    "h": 123.4
  },
  "luminance": 0.14526
}

Semantic roles & 50–950 ramp

primary
#5B7311
secondary
#5236AA
accent
#37F164
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5B7311

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

Preview Lab → · Contrast checker → · Palette generator →

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