#5B7818#5B7818

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

Color values

HEX#5B7818
RGBrgb(91, 120, 24)
HSLhsl(78, 67%, 28%)
HSVhsv(78, 80%, 47%)
CMYKcmyk(24.2%, 0%, 80%, 52.9%)
CIE-LABlab(46.61, -24.77, 45.53)
CIE-LCHlch(46.61, 51.83, 118.54°)
OKLaboklab(53.13% -0.0719 0.1005)
OKLCHoklch(53.13% 0.124 125.6)
XYZxyz(11.1958, 15.7229, 3.3090)
Luminance0.1572 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7818 #351878
analogous
#786518 #5B7818 #2B7818
triadic
#5B7818 #185B78 #78185B
tetradic
#5B7818 #187865 #351878 #78182B
square
#5B7818 #187865 #351878 #78182B
split-complementary
#5B7818 #182B78 #651878
monochromatic
#131A05 #34450E #5B7818 #82AB22 #A5D634

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B7818#FFFFFF#000000##FFFFFF
##5B78181.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)
#7F7001
Deuteranopia (green-blind)
#7B6E22
Tritanopia (blue-blind)
#5F7266
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5b7818;
/* rgb */ color: rgb(91, 120, 24);
/* oklch */ color: oklch(53.1% 0.124 125.6);
Tailwind
colors: {
  custom: {
    50: '#8d9f5e',
    500: '#5b7818',
    950: '#000000',
  },
}
SCSS
$custom: #5b7818;
$custom-light: #8d9f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7818",
  "rgb": {
    "r": 91,
    "g": 120,
    "b": 24
  },
  "hsl": {
    "h": 78.125,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.53134,
    "c": 0.12355,
    "h": 125.6
  },
  "luminance": 0.15723
}

Semantic roles & 50–950 ramp

primary
#5B7818
secondary
#603FAD
accent
#3EEA72
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5B7818

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

Preview Lab → · Contrast checker → · Palette generator →

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