#5B7B14#5B7B14

#5B7B14 is a mid, vivid yellow-green. Relative luminance 0.164; OKLCH L 53.9% C 0.129 H 126.3°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#5B7B14
RGBrgb(91, 123, 20)
HSLhsl(79, 72%, 28%)
HSVhsv(79, 84%, 48%)
CMYKcmyk(26%, 0%, 83.7%, 51.8%)
CIE-LABlab(47.55, -26.44, 47.66)
CIE-LCHlch(47.55, 54.51, 119.02°)
OKLaboklab(53.89% -0.0767 0.1043)
OKLCHoklch(53.89% 0.129 126.3)
XYZxyz(11.5237, 16.4404, 3.2279)
Luminance0.1644 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7B14 #34147B
analogous
#7B6714 #5B7B14 #277B14
triadic
#5B7B14 #145B7B #7B145B
tetradic
#5B7B14 #147B67 #34147B #7B1427
square
#5B7B14 #147B67 #34147B #7B1427
split-complementary
#5B7B14 #14277B #67147B
monochromatic
#131A04 #34460B #5B7B14 #82B01D #A6DD2D

Accessibility & contrast

On white

4.90
#5B7B14 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#5B7B14 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7B14
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7B14#FFFFFF#000000##FFFFFF
##5B7B141.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#7E701F
Tritanopia (blue-blind)
#5F7568
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5b7b14;
/* rgb */ color: rgb(91, 123, 20);
/* oklch */ color: oklch(53.9% 0.129 126.3);
Tailwind
colors: {
  custom: {
    50: '#8da15c',
    500: '#5b7b14',
    950: '#000000',
  },
}
SCSS
$custom: #5b7b14;
$custom-light: #8da15c;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7b14",
  "rgb": {
    "r": 91,
    "g": 123,
    "b": 20
  },
  "hsl": {
    "h": 78.641,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.53889,
    "c": 0.12948,
    "h": 126.3
  },
  "luminance": 0.16441
}

Semantic roles & 50–950 ramp

primary
#5B7B14
secondary
#5F3AB1
accent
#39EF72
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0D0F04
muted
#7D7E79

Preview Lab

Preview with #5B7B14

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

Preview Lab → · Contrast checker → · Palette generator →

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