#5B7815#5B7815

#5B7815 is a mid, vivid yellow-green. Relative luminance 0.157; OKLCH L 53.1% C 0.125 H 125.4°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#5B7815
RGBrgb(91, 120, 21)
HSLhsl(78, 70%, 28%)
HSVhsv(78, 83%, 47%)
CMYKcmyk(24.2%, 0%, 82.5%, 52.9%)
CIE-LABlab(46.59, -24.91, 46.50)
CIE-LCHlch(46.59, 52.75, 118.18°)
OKLaboklab(53.12% -0.0725 0.102)
OKLCHoklch(53.12% 0.125 125.4)
XYZxyz(11.1663, 15.7111, 3.1536)
Luminance0.1571 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7815 #321578
analogous
#786415 #5B7815 #297815
triadic
#5B7815 #155B78 #78155B
tetradic
#5B7815 #157864 #321578 #781529
square
#5B7815 #157864 #321578 #781529
split-complementary
#5B7815 #152978 #641578
monochromatic
#141A05 #34440C #5B7815 #82AC1E #A8DA2D

Accessibility & contrast

On white

5.07
#5B7815 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#5B7815 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7815
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7815#FFFFFF#000000##FFFFFF
##5B78151.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F00
Deuteranopia (green-blind)
#7B6E20
Tritanopia (blue-blind)
#5F7266
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5b7815;
/* rgb */ color: rgb(91, 120, 21);
/* oklch */ color: oklch(53.1% 0.125 125.4);
Tailwind
colors: {
  custom: {
    50: '#8d9f5c',
    500: '#5b7815',
    950: '#000000',
  },
}
SCSS
$custom: #5b7815;
$custom-light: #8d9f5c;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7815",
  "rgb": {
    "r": 91,
    "g": 120,
    "b": 21
  },
  "hsl": {
    "h": 77.576,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.53116,
    "c": 0.12514,
    "h": 125.4
  },
  "luminance": 0.15711
}

Semantic roles & 50–950 ramp

primary
#5B7815
secondary
#5D3BAE
accent
#3BED6F
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5B7815

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

Preview Lab → · Contrast checker → · Palette generator →

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