#5B7A16#5B7A16

#5B7A16 is a mid, vivid yellow-green. Relative luminance 0.162; OKLCH L 53.6% C 0.127 H 126.1°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#5B7A16
RGBrgb(91, 122, 22)
HSLhsl(79, 69%, 28%)
HSVhsv(79, 82%, 48%)
CMYKcmyk(25.4%, 0%, 82%, 52.2%)
CIE-LABlab(47.24, -25.86, 46.77)
CIE-LCHlch(47.24, 53.44, 118.94°)
OKLaboklab(53.64% -0.075 0.1028)
OKLCHoklch(53.64% 0.127 126.1)
XYZxyz(11.4188, 16.2010, 3.2844)
Luminance0.1620 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7A16 #35167A
analogous
#7A6716 #5B7A16 #297A16
triadic
#5B7A16 #165B7A #7A165B
tetradic
#5B7A16 #167A67 #35167A #7A1629
square
#5B7A16 #167A67 #35167A #7A1629
split-complementary
#5B7A16 #16297A #67167A
monochromatic
#131A05 #34460D #5B7A16 #82AE1F #A5DA31

Accessibility & contrast

On white

4.95
#5B7A16 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#5B7A16 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7A16
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7A16#FFFFFF#000000##FFFFFF
##5B7A161.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#7D7021
Tritanopia (blue-blind)
#5F7468
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5b7a16;
/* rgb */ color: rgb(91, 122, 22);
/* oklch */ color: oklch(53.6% 0.127 126.1);
Tailwind
colors: {
  custom: {
    50: '#8da05d',
    500: '#5b7a16',
    950: '#000000',
  },
}
SCSS
$custom: #5b7a16;
$custom-light: #8da05d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7a16",
  "rgb": {
    "r": 91,
    "g": 122,
    "b": 22
  },
  "hsl": {
    "h": 78.6,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.5364,
    "c": 0.12721,
    "h": 126.1
  },
  "luminance": 0.16201
}

Semantic roles & 50–950 ramp

primary
#5B7A16
secondary
#603DAF
accent
#3CEC72
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0D0E05
muted
#7D7E79

Preview Lab

Preview with #5B7A16

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

Preview Lab → · Contrast checker → · Palette generator →

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