#5B7015#5B7015

#5B7015 is a mid, moderate yellow-green. Relative luminance 0.139; OKLCH L 51.0% C 0.115 H 122.3°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#5B7015
RGBrgb(91, 112, 21)
HSLhsl(74, 68%, 26%)
HSVhsv(74, 81%, 44%)
CMYKcmyk(18.7%, 0%, 81.2%, 56.1%)
CIE-LABlab(44.04, -20.85, 44.16)
CIE-LCHlch(44.04, 48.84, 115.27°)
OKLaboklab(51.05% -0.0614 0.0971)
OKLCHoklch(51.05% 0.115 122.3)
XYZxyz(10.2441, 13.8666, 2.8462)
Luminance0.1387 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7015 #2A1570
analogous
#705715 #5B7015 #2D7015
triadic
#5B7015 #155B70 #70155B
tetradic
#5B7015 #157057 #2A1570 #70152D
square
#5B7015 #157057 #2A1570 #70152D
split-complementary
#5B7015 #152D70 #571570
monochromatic
#151A05 #313C0B #5B7015 #85A41F #AFD729

Accessibility & contrast

On white

5.57
#5B7015 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#5B7015 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7015
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7015#FFFFFF#000000##FFFFFF
##5B70151.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776900
Deuteranopia (green-blind)
#74681E
Tritanopia (blue-blind)
#606A5F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5b7015;
/* rgb */ color: rgb(91, 112, 21);
/* oklch */ color: oklch(51.0% 0.115 122.3);
Tailwind
colors: {
  custom: {
    50: '#8c995b',
    500: '#5b7015',
    950: '#000000',
  },
}
SCSS
$custom: #5b7015;
$custom-light: #8c995b;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7015",
  "rgb": {
    "r": 91,
    "g": 112,
    "b": 21
  },
  "hsl": {
    "h": 73.846,
    "s": 68.421,
    "l": 26.078
  },
  "oklch": {
    "l": 0.5105,
    "c": 0.11486,
    "h": 122.3
  },
  "luminance": 0.13867
}

Semantic roles & 50–950 ramp

primary
#5B7015
secondary
#533BA6
accent
#3DEB65
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0D04
muted
#7D7E79

Preview Lab

Preview with #5B7015

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

Preview Lab → · Contrast checker → · Palette generator →

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