#5B7018#5B7018

#5B7018 is a mid, moderate yellow-green. Relative luminance 0.139; OKLCH L 51.1% C 0.113 H 122.5°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#5B7018
RGBrgb(91, 112, 24)
HSLhsl(74, 65%, 27%)
HSVhsv(74, 79%, 44%)
CMYKcmyk(18.7%, 0%, 78.6%, 56.1%)
CIE-LABlab(44.06, -20.69, 43.13)
CIE-LCHlch(44.06, 47.84, 115.63°)
OKLaboklab(51.07% -0.0607 0.0954)
OKLCHoklch(51.07% 0.113 122.5)
XYZxyz(10.2736, 13.8784, 3.0015)
Luminance0.1388 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7018 #2D1870
analogous
#705918 #5B7018 #2F7018
triadic
#5B7018 #185B70 #70185B
tetradic
#5B7018 #187059 #2D1870 #70182F
square
#5B7018 #187059 #2D1870 #70182F
split-complementary
#5B7018 #182F70 #591870
monochromatic
#141905 #323E0D #5B7018 #84A223 #ACD330

Accessibility & contrast

On white

5.56
#5B7018 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#5B7018 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7018
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7018#FFFFFF#000000##FFFFFF
##5B70181.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776905
Deuteranopia (green-blind)
#746820
Tritanopia (blue-blind)
#606A5F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5b7018;
/* rgb */ color: rgb(91, 112, 24);
/* oklch */ color: oklch(51.1% 0.113 122.5);
Tailwind
colors: {
  custom: {
    50: '#8c995c',
    500: '#5b7018',
    950: '#000000',
  },
}
SCSS
$custom: #5b7018;
$custom-light: #8c995c;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7018",
  "rgb": {
    "r": 91,
    "g": 112,
    "b": 24
  },
  "hsl": {
    "h": 74.318,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.5107,
    "c": 0.11312,
    "h": 122.5
  },
  "luminance": 0.13878
}

Semantic roles & 50–950 ramp

primary
#5B7018
secondary
#573EA5
accent
#40E868
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0D04
muted
#7D7E79

Preview Lab

Preview with #5B7018

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

Preview Lab → · Contrast checker → · Palette generator →

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