#5B771B#5B771B

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

Color values

HEX#5B771B
RGBrgb(91, 119, 27)
HSLhsl(78, 63%, 29%)
HSVhsv(78, 77%, 47%)
CMYKcmyk(23.5%, 0%, 77.3%, 53.3%)
CIE-LABlab(46.31, -24.10, 44.18)
CIE-LCHlch(46.31, 50.33, 118.61°)
OKLaboklab(52.9% -0.0698 0.0982)
OKLCHoklch(52.9% 0.12 125.4)
XYZxyz(11.1091, 15.4968, 3.4426)
Luminance0.1550 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B771B #371B77
analogous
#77651B #5B771B #2D771B
triadic
#5B771B #1B5B77 #771B5B
tetradic
#5B771B #1B7765 #371B77 #771B2D
square
#5B771B #1B7765 #371B77 #771B2D
split-complementary
#5B771B #1B2D77 #651B77
monochromatic
#131906 #354510 #5B771B #81A926 #A4D23A

Accessibility & contrast

On white

5.12
#5B771B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5B771B
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B771B#FFFFFF#000000##FFFFFF
##5B771B1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b771b;
/* rgb */ color: rgb(91, 119, 27);
/* oklch */ color: oklch(52.9% 0.120 125.4);
Tailwind
colors: {
  custom: {
    50: '#8c9e5f',
    500: '#5b771b',
    950: '#000000',
  },
}
SCSS
$custom: #5b771b;
$custom-light: #8c9e5f;
$custom-dark: #000000;
JSON
{
  "hex": "#5b771b",
  "rgb": {
    "r": 91,
    "g": 119,
    "b": 27
  },
  "hsl": {
    "h": 78.261,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.52895,
    "c": 0.12047,
    "h": 125.4
  },
  "luminance": 0.15497
}

Semantic roles & 50–950 ramp

primary
#5B771B
secondary
#6242AB
accent
#42E674
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5B771B

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

Preview Lab → · Contrast checker → · Palette generator →

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