#5B6917#5B6917

#5B6917 is a mid, moderate yellow-green. Relative luminance 0.124; OKLCH L 49.3% C 0.105 H 119.0°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#5B6917
RGBrgb(91, 105, 23)
HSLhsl(70, 64%, 25%)
HSVhsv(70, 78%, 41%)
CMYKcmyk(13.3%, 0%, 78.1%, 58.8%)
CIE-LABlab(41.83, -17.05, 41.38)
CIE-LCHlch(41.83, 44.75, 112.39°)
OKLaboklab(49.27% -0.0508 0.0916)
OKLCHoklch(49.27% 0.105 119)
XYZxyz(9.5208, 12.3892, 2.7002)
Luminance0.1239 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B6917 #251769
analogous
#694E17 #5B6917 #326917
triadic
#5B6917 #175B69 #69175B
tetradic
#5B6917 #17694E #251769 #691732
square
#5B6917 #17694E #251769 #691732
split-complementary
#5B6917 #173269 #4E1769
monochromatic
#161905 #2F370C #5B6917 #879B22 #B2CD2D

Accessibility & contrast

On white

6.04
#5B6917 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#5B6917 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B6917
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B6917#FFFFFF#000000##FFFFFF
##5B69171.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#706306
Deuteranopia (green-blind)
#6F631E
Tritanopia (blue-blind)
#616359
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5b6917;
/* rgb */ color: rgb(91, 105, 23);
/* oklch */ color: oklch(49.3% 0.105 119.0);
Tailwind
colors: {
  custom: {
    50: '#8c935b',
    500: '#5b6917',
    950: '#000000',
  },
}
SCSS
$custom: #5b6917;
$custom-light: #8c935b;
$custom-dark: #000000;
JSON
{
  "hex": "#5b6917",
  "rgb": {
    "r": 91,
    "g": 105,
    "b": 23
  },
  "hsl": {
    "h": 70.244,
    "s": 64.063,
    "l": 25.098
  },
  "oklch": {
    "l": 0.49269,
    "c": 0.10471,
    "h": 119
  },
  "luminance": 0.12389
}

Semantic roles & 50–950 ramp

primary
#5B6917
secondary
#4D3D9F
accent
#41E75D
background
#F8F9F5
surface
#F0F1E9
border
#CBCBC5
text
#0C0D04
muted
#7D7E79

Preview Lab

Preview with #5B6917

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

Preview Lab → · Contrast checker → · Palette generator →

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