#5B7918#5B7918

#5B7918 is a mid, vivid yellow-green. Relative luminance 0.160; OKLCH L 53.4% C 0.125 H 125.9°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#5B7918
RGBrgb(91, 121, 24)
HSLhsl(79, 67%, 28%)
HSVhsv(79, 80%, 47%)
CMYKcmyk(24.8%, 0%, 80.2%, 52.5%)
CIE-LABlab(46.93, -25.26, 45.83)
CIE-LCHlch(46.93, 52.33, 118.86°)
OKLaboklab(53.39% -0.0732 0.1011)
OKLCHoklch(53.39% 0.125 125.9)
XYZxyz(11.3167, 15.9647, 3.3492)
Luminance0.1596 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7918 #361879
analogous
#796618 #5B7918 #2A7918
triadic
#5B7918 #185B79 #79185B
tetradic
#5B7918 #187966 #361879 #79182A
square
#5B7918 #187966 #361879 #79182A
split-complementary
#5B7918 #182A79 #661879
monochromatic
#131A05 #35460E #5B7918 #81AC22 #A5D735

Accessibility & contrast

On white

5.01
#5B7918 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#5B7918 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7918
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7918#FFFFFF#000000##FFFFFF
##5B79181.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807000
Deuteranopia (green-blind)
#7C6F22
Tritanopia (blue-blind)
#5F7367
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5b7918;
/* rgb */ color: rgb(91, 121, 24);
/* oklch */ color: oklch(53.4% 0.125 125.9);
Tailwind
colors: {
  custom: {
    50: '#8d9f5e',
    500: '#5b7918',
    950: '#000000',
  },
}
SCSS
$custom: #5b7918;
$custom-light: #8d9f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7918",
  "rgb": {
    "r": 91,
    "g": 121,
    "b": 24
  },
  "hsl": {
    "h": 78.557,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.53393,
    "c": 0.12485,
    "h": 125.9
  },
  "luminance": 0.15965
}

Semantic roles & 50–950 ramp

primary
#5B7918
secondary
#613FAE
accent
#3EEA73
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5B7918

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

Preview Lab → · Contrast checker → · Palette generator →

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