#5B7418#5B7418

#5B7418 is a mid, moderate yellow-green. Relative luminance 0.148; OKLCH L 52.1% C 0.118 H 124.1°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#5B7418
RGBrgb(91, 116, 24)
HSLhsl(76, 66%, 27%)
HSVhsv(76, 79%, 45%)
CMYKcmyk(21.6%, 0%, 79.3%, 54.5%)
CIE-LABlab(45.33, -22.75, 44.34)
CIE-LCHlch(45.33, 49.83, 117.16°)
OKLaboklab(52.1% -0.0664 0.098)
OKLCHoklch(52.1% 0.118 124.1)
XYZxyz(10.7248, 14.7808, 3.1519)
Luminance0.1478 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7418 #311874
analogous
#745F18 #5B7418 #2D7418
triadic
#5B7418 #185B74 #74185B
tetradic
#5B7418 #18745F #311874 #74182D
square
#5B7418 #18745F #311874 #74182D
split-complementary
#5B7418 #182D74 #5F1874
monochromatic
#141905 #33410E #5B7418 #83A722 #A8D532

Accessibility & contrast

On white

5.31
#5B7418 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#5B7418 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7418
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7418#FFFFFF#000000##FFFFFF
##5B74181.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C03
Deuteranopia (green-blind)
#786B21
Tritanopia (blue-blind)
#606E63
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5b7418;
/* rgb */ color: rgb(91, 116, 24);
/* oklch */ color: oklch(52.1% 0.118 124.1);
Tailwind
colors: {
  custom: {
    50: '#8c9c5d',
    500: '#5b7418',
    950: '#000000',
  },
}
SCSS
$custom: #5b7418;
$custom-light: #8c9c5d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7418",
  "rgb": {
    "r": 91,
    "g": 116,
    "b": 24
  },
  "hsl": {
    "h": 76.304,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.521,
    "c": 0.11834,
    "h": 124.1
  },
  "luminance": 0.14781
}

Semantic roles & 50–950 ramp

primary
#5B7418
secondary
#5C3FA9
accent
#3FE96D
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5B7418

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

Preview Lab → · Contrast checker → · Palette generator →

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