#5B7411#5B7411

#5B7411 is a mid, vivid yellow-green. Relative luminance 0.148; OKLCH L 52.1% C 0.122 H 123.8°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#5B7411
RGBrgb(91, 116, 17)
HSLhsl(75, 74%, 26%)
HSVhsv(75, 85%, 45%)
CMYKcmyk(21.6%, 0%, 85.3%, 54.5%)
CIE-LABlab(45.30, -23.08, 46.54)
CIE-LCHlch(45.30, 51.94, 116.38°)
OKLaboklab(52.06% -0.0678 0.1014)
OKLCHoklch(52.06% 0.122 123.8)
XYZxyz(10.6611, 14.7553, 2.8166)
Luminance0.1475 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7411 #2A1174
analogous
#745B11 #5B7411 #297411
triadic
#5B7411 #115B74 #74115B
tetradic
#5B7411 #11745B #2A1174 #741129
square
#5B7411 #11745B #2A1174 #741129
split-complementary
#5B7411 #112974 #5B1174
monochromatic
#151B04 #313F09 #5B7411 #85A919 #AFDE21

Accessibility & contrast

On white

5.32
#5B7411 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#5B7411 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7411
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7411#FFFFFF#000000##FFFFFF
##5B74111.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C00
Deuteranopia (green-blind)
#786B1C
Tritanopia (blue-blind)
#606E62
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5b7411;
/* rgb */ color: rgb(91, 116, 17);
/* oklch */ color: oklch(52.1% 0.122 123.8);
Tailwind
colors: {
  custom: {
    50: '#8d9c5a',
    500: '#5b7411',
    950: '#000000',
  },
}
SCSS
$custom: #5b7411;
$custom-light: #8d9c5a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7411",
  "rgb": {
    "r": 91,
    "g": 116,
    "b": 17
  },
  "hsl": {
    "h": 75.152,
    "s": 74.436,
    "l": 26.078
  },
  "oklch": {
    "l": 0.5206,
    "c": 0.12196,
    "h": 123.8
  },
  "luminance": 0.14755
}

Semantic roles & 50–950 ramp

primary
#5B7411
secondary
#5336AB
accent
#37F166
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5B7411

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

Preview Lab → · Contrast checker → · Palette generator →

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