#5B7718#5B7718

#5B7718 is a mid, vivid yellow-green. Relative luminance 0.155; OKLCH L 52.9% C 0.122 H 125.2°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#5B7718
RGBrgb(91, 119, 24)
HSLhsl(78, 66%, 28%)
HSVhsv(78, 80%, 47%)
CMYKcmyk(23.5%, 0%, 79.8%, 53.3%)
CIE-LABlab(46.29, -24.27, 45.23)
CIE-LCHlch(46.29, 51.33, 118.21°)
OKLaboklab(52.88% -0.0705 0.0999)
OKLCHoklch(52.88% 0.122 125.2)
XYZxyz(11.0762, 15.4836, 3.2691)
Luminance0.1548 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7718 #341877
analogous
#776318 #5B7718 #2B7718
triadic
#5B7718 #185B77 #77185B
tetradic
#5B7718 #187763 #341877 #77182B
square
#5B7718 #187763 #341877 #77182B
split-complementary
#5B7718 #182B77 #631877
monochromatic
#131905 #34440E #5B7718 #82AA22 #A6D633

Accessibility & contrast

On white

5.13
#5B7718 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#5B7718 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7718
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7718#FFFFFF#000000##FFFFFF
##5B77181.005.134.105.13
#FFFFFF5.131.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F01
Deuteranopia (green-blind)
#7A6D21
Tritanopia (blue-blind)
#5F7165
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5b7718;
/* rgb */ color: rgb(91, 119, 24);
/* oklch */ color: oklch(52.9% 0.122 125.2);
Tailwind
colors: {
  custom: {
    50: '#8d9e5d',
    500: '#5b7718',
    950: '#000000',
  },
}
SCSS
$custom: #5b7718;
$custom-light: #8d9e5d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7718",
  "rgb": {
    "r": 91,
    "g": 119,
    "b": 24
  },
  "hsl": {
    "h": 77.684,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.52875,
    "c": 0.12224,
    "h": 125.2
  },
  "luminance": 0.15484
}

Semantic roles & 50–950 ramp

primary
#5B7718
secondary
#5F3FAC
accent
#3EE971
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5B7718

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

Preview Lab → · Contrast checker → · Palette generator →

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