#5B7817#5B7817

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

Color values

HEX#5B7817
RGBrgb(91, 120, 23)
HSLhsl(78, 68%, 28%)
HSVhsv(78, 81%, 47%)
CMYKcmyk(24.2%, 0%, 80.8%, 52.9%)
CIE-LABlab(46.60, -24.82, 45.86)
CIE-LCHlch(46.60, 52.15, 118.42°)
OKLaboklab(53.13% -0.0721 0.101)
OKLCHoklch(53.13% 0.124 125.5)
XYZxyz(11.1856, 15.7188, 3.2552)
Luminance0.1572 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7817 #341778
analogous
#786417 #5B7817 #2A7817
triadic
#5B7817 #175B78 #78175B
tetradic
#5B7817 #177864 #341778 #78172A
square
#5B7817 #177864 #341778 #78172A
split-complementary
#5B7817 #172A78 #641778
monochromatic
#131A05 #34450D #5B7817 #82AB21 #A6D832

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B7817#FFFFFF#000000##FFFFFF
##5B78171.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)
#7F7000
Deuteranopia (green-blind)
#7B6E21
Tritanopia (blue-blind)
#5F7266
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5b7817;
/* rgb */ color: rgb(91, 120, 23);
/* oklch */ color: oklch(53.1% 0.124 125.5);
Tailwind
colors: {
  custom: {
    50: '#8d9f5d',
    500: '#5b7817',
    950: '#000000',
  },
}
SCSS
$custom: #5b7817;
$custom-light: #8d9f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7817",
  "rgb": {
    "r": 91,
    "g": 120,
    "b": 23
  },
  "hsl": {
    "h": 77.938,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.53128,
    "c": 0.12409,
    "h": 125.5
  },
  "luminance": 0.15719
}

Semantic roles & 50–950 ramp

primary
#5B7817
secondary
#5F3EAD
accent
#3DEB71
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5B7817

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

Preview Lab → · Contrast checker → · Palette generator →

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