#5B7615#5B7615

#5B7615 is a mid, vivid yellow-green. Relative luminance 0.152; OKLCH L 52.6% C 0.123 H 124.7°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#5B7615
RGBrgb(91, 118, 21)
HSLhsl(77, 70%, 27%)
HSVhsv(77, 82%, 46%)
CMYKcmyk(22.9%, 0%, 82.2%, 53.7%)
CIE-LABlab(45.95, -23.91, 45.92)
CIE-LCHlch(45.95, 51.77, 117.51°)
OKLaboklab(52.6% -0.0698 0.1008)
OKLCHoklch(52.6% 0.123 124.7)
XYZxyz(10.9283, 15.2350, 3.0742)
Luminance0.1524 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7615 #301576
analogous
#766115 #5B7615 #2B7615
triadic
#5B7615 #155B76 #76155B
tetradic
#5B7615 #157661 #301576 #76152B
square
#5B7615 #157661 #301576 #76152B
split-complementary
#5B7615 #152B76 #611576
monochromatic
#141A05 #33420C #5B7615 #83AA1E #A9D92C

Accessibility & contrast

On white

5.19
#5B7615 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#5B7615 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7615
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7615#FFFFFF#000000##FFFFFF
##5B76151.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E00
Deuteranopia (green-blind)
#796D1F
Tritanopia (blue-blind)
#607064
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5b7615;
/* rgb */ color: rgb(91, 118, 21);
/* oklch */ color: oklch(52.6% 0.123 124.7);
Tailwind
colors: {
  custom: {
    50: '#8d9d5c',
    500: '#5b7615',
    950: '#000000',
  },
}
SCSS
$custom: #5b7615;
$custom-light: #8d9d5c;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7615",
  "rgb": {
    "r": 91,
    "g": 118,
    "b": 21
  },
  "hsl": {
    "h": 76.701,
    "s": 69.784,
    "l": 27.255
  },
  "oklch": {
    "l": 0.52599,
    "c": 0.12257,
    "h": 124.7
  },
  "luminance": 0.15235
}

Semantic roles & 50–950 ramp

primary
#5B7615
secondary
#5A3BAC
accent
#3BED6D
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5B7615

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

Preview Lab → · Contrast checker → · Palette generator →

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