#5B7115#5B7115

#5B7115 is a mid, moderate yellow-green. Relative luminance 0.141; OKLCH L 51.3% C 0.116 H 122.7°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#5B7115
RGBrgb(91, 113, 21)
HSLhsl(74, 69%, 26%)
HSVhsv(74, 81%, 44%)
CMYKcmyk(19.5%, 0%, 81.4%, 55.7%)
CIE-LABlab(44.36, -21.37, 44.46)
CIE-LCHlch(44.36, 49.33, 115.67°)
OKLaboklab(51.31% -0.0628 0.0977)
OKLCHoklch(51.31% 0.116 122.7)
XYZxyz(10.3550, 14.0885, 2.8831)
Luminance0.1409 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7115 #2B1571
analogous
#715915 #5B7115 #2D7115
triadic
#5B7115 #155B71 #71155B
tetradic
#5B7115 #157159 #2B1571 #71152D
square
#5B7115 #157159 #2B1571 #71152D
split-complementary
#5B7115 #152D71 #591571
monochromatic
#151A05 #313D0B #5B7115 #85A51F #AED729

Accessibility & contrast

On white

5.50
#5B7115 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#5B7115 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7115
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7115#FFFFFF#000000##FFFFFF
##5B71151.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786900
Deuteranopia (green-blind)
#75691E
Tritanopia (blue-blind)
#606B60
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5b7115;
/* rgb */ color: rgb(91, 113, 21);
/* oklch */ color: oklch(51.3% 0.116 122.7);
Tailwind
colors: {
  custom: {
    50: '#8c995b',
    500: '#5b7115',
    950: '#000000',
  },
}
SCSS
$custom: #5b7115;
$custom-light: #8c995b;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7115",
  "rgb": {
    "r": 91,
    "g": 113,
    "b": 21
  },
  "hsl": {
    "h": 74.348,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.51308,
    "c": 0.11615,
    "h": 122.7
  },
  "luminance": 0.14089
}

Semantic roles & 50–950 ramp

primary
#5B7115
secondary
#553BA7
accent
#3CEB66
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5B7115

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

Preview Lab → · Contrast checker → · Palette generator →

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