#5B7618#5B7618

#5B7618 is a mid, vivid yellow-green. Relative luminance 0.152; OKLCH L 52.6% C 0.121 H 124.9°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#5B7618
RGBrgb(91, 118, 24)
HSLhsl(77, 66%, 28%)
HSVhsv(77, 80%, 46%)
CMYKcmyk(22.9%, 0%, 79.7%, 53.7%)
CIE-LABlab(45.97, -23.76, 44.94)
CIE-LCHlch(45.97, 50.83, 117.87°)
OKLaboklab(52.62% -0.0691 0.0992)
OKLCHoklch(52.62% 0.121 124.9)
XYZxyz(10.9578, 15.2468, 3.2296)
Luminance0.1525 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7618 #331876
analogous
#766218 #5B7618 #2C7618
triadic
#5B7618 #185B76 #76185B
tetradic
#5B7618 #187662 #331876 #76182C
square
#5B7618 #187662 #331876 #76182C
split-complementary
#5B7618 #182C76 #621876
monochromatic
#141905 #34430E #5B7618 #82A922 #A7D533

Accessibility & contrast

On white

5.19
#5B7618 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#5B7618 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7618
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7618#FFFFFF#000000##FFFFFF
##5B76181.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E02
Deuteranopia (green-blind)
#796D21
Tritanopia (blue-blind)
#607064
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5b7618;
/* rgb */ color: rgb(91, 118, 24);
/* oklch */ color: oklch(52.6% 0.121 124.9);
Tailwind
colors: {
  custom: {
    50: '#8d9d5d',
    500: '#5b7618',
    950: '#000000',
  },
}
SCSS
$custom: #5b7618;
$custom-light: #8d9d5d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7618",
  "rgb": {
    "r": 91,
    "g": 118,
    "b": 24
  },
  "hsl": {
    "h": 77.234,
    "s": 66.197,
    "l": 27.843
  },
  "oklch": {
    "l": 0.52617,
    "c": 0.12094,
    "h": 124.9
  },
  "luminance": 0.15247
}

Semantic roles & 50–950 ramp

primary
#5B7618
secondary
#5E3FAB
accent
#3FE970
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5B7618

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

Preview Lab → · Contrast checker → · Palette generator →

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