#5B7617#5B7617

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

Color values

HEX#5B7617
RGBrgb(91, 118, 23)
HSLhsl(77, 67%, 28%)
HSVhsv(77, 81%, 46%)
CMYKcmyk(22.9%, 0%, 80.5%, 53.7%)
CIE-LABlab(45.97, -23.82, 45.27)
CIE-LCHlch(45.97, 51.15, 117.75°)
OKLaboklab(52.61% -0.0693 0.0998)
OKLCHoklch(52.61% 0.122 124.8)
XYZxyz(10.9476, 15.2428, 3.1758)
Luminance0.1524 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7617 #321776
analogous
#766217 #5B7617 #2B7617
triadic
#5B7617 #175B76 #76175B
tetradic
#5B7617 #177662 #321776 #76172B
square
#5B7617 #177662 #321776 #76172B
split-complementary
#5B7617 #172B76 #621776
monochromatic
#141A05 #34430D #5B7617 #82A921 #A8D731

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B7617#FFFFFF#000000##FFFFFF
##5B76171.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)
#796D21
Tritanopia (blue-blind)
#607064
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5b7617;
/* rgb */ color: rgb(91, 118, 23);
/* oklch */ color: oklch(52.6% 0.121 124.8);
Tailwind
colors: {
  custom: {
    50: '#8d9d5d',
    500: '#5b7617',
    950: '#000000',
  },
}
SCSS
$custom: #5b7617;
$custom-light: #8d9d5d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7617",
  "rgb": {
    "r": 91,
    "g": 118,
    "b": 23
  },
  "hsl": {
    "h": 77.053,
    "s": 67.376,
    "l": 27.647
  },
  "oklch": {
    "l": 0.5261,
    "c": 0.1215,
    "h": 124.8
  },
  "luminance": 0.15243
}

Semantic roles & 50–950 ramp

primary
#5B7617
secondary
#5D3EAB
accent
#3EEA6F
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5B7617

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

Preview Lab → · Contrast checker → · Palette generator →

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