#5B7511#5B7511

#5B7511 is a mid, vivid yellow-green. Relative luminance 0.150; OKLCH L 52.3% C 0.123 H 124.1°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#5B7511
RGBrgb(91, 117, 17)
HSLhsl(76, 75%, 26%)
HSVhsv(76, 85%, 46%)
CMYKcmyk(22.2%, 0%, 85.5%, 54.1%)
CIE-LABlab(45.62, -23.58, 46.82)
CIE-LCHlch(45.62, 52.42, 116.74°)
OKLaboklab(52.32% -0.0692 0.102)
OKLCHoklch(52.32% 0.123 124.1)
XYZxyz(10.7770, 14.9871, 2.8552)
Luminance0.1499 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7511 #2B1175
analogous
#755D11 #5B7511 #297511
triadic
#5B7511 #115B75 #75115B
tetradic
#5B7511 #11755D #2B1175 #751129
square
#5B7511 #11755D #2B1175 #751129
split-complementary
#5B7511 #112975 #5D1175
monochromatic
#151B04 #314009 #5B7511 #85AA19 #AEDF22

Accessibility & contrast

On white

5.25
#5B7511 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#5B7511 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7511
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7511#FFFFFF#000000##FFFFFF
##5B75111.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D00
Deuteranopia (green-blind)
#796C1C
Tritanopia (blue-blind)
#606F63
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5b7511;
/* rgb */ color: rgb(91, 117, 17);
/* oklch */ color: oklch(52.3% 0.123 124.1);
Tailwind
colors: {
  custom: {
    50: '#8d9c5a',
    500: '#5b7511',
    950: '#000000',
  },
}
SCSS
$custom: #5b7511;
$custom-light: #8d9c5a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7511",
  "rgb": {
    "r": 91,
    "g": 117,
    "b": 17
  },
  "hsl": {
    "h": 75.6,
    "s": 74.627,
    "l": 26.275
  },
  "oklch": {
    "l": 0.52319,
    "c": 0.12323,
    "h": 124.1
  },
  "luminance": 0.14987
}

Semantic roles & 50–950 ramp

primary
#5B7511
secondary
#5536AC
accent
#37F167
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0D0E04
muted
#7D7E79

Preview Lab

Preview with #5B7511

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

Preview Lab → · Contrast checker → · Palette generator →

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