#5A771B#5A771B

#5A771B is a mid, vivid yellow-green. Relative luminance 0.154; OKLCH L 52.8% C 0.121 H 125.9°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#5A771B
RGBrgb(90, 119, 27)
HSLhsl(79, 63%, 29%)
HSVhsv(79, 77%, 47%)
CMYKcmyk(24.4%, 0%, 77.3%, 53.3%)
CIE-LABlab(46.24, -24.53, 44.10)
CIE-LCHlch(46.24, 50.46, 119.09°)
OKLaboklab(52.82% -0.0709 0.098)
OKLCHoklch(52.82% 0.121 125.9)
XYZxyz(11.0112, 15.4463, 3.4380)
Luminance0.1545 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A771B #381B77
analogous
#77661B #5A771B #2C771B
triadic
#5A771B #1B5A77 #771B5A
tetradic
#5A771B #1B7766 #381B77 #771B2C
square
#5A771B #1B7766 #381B77 #771B2C
split-complementary
#5A771B #1B2C77 #661B77
monochromatic
#131906 #344510 #5A771B #80A926 #A2D23A

Accessibility & contrast

On white

5.14
#5A771B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#5A771B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A771B
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A771B#FFFFFF#000000##FFFFFF
##5A771B1.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a771b;
/* rgb */ color: rgb(90, 119, 27);
/* oklch */ color: oklch(52.8% 0.121 125.9);
Tailwind
colors: {
  custom: {
    50: '#8c9e5f',
    500: '#5a771b',
    950: '#000000',
  },
}
SCSS
$custom: #5a771b;
$custom-light: #8c9e5f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a771b",
  "rgb": {
    "r": 90,
    "g": 119,
    "b": 27
  },
  "hsl": {
    "h": 78.913,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.52823,
    "c": 0.12098,
    "h": 125.9
  },
  "luminance": 0.15446
}

Semantic roles & 50–950 ramp

primary
#5A771B
secondary
#6442AB
accent
#42E676
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5A771B

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

Preview Lab → · Contrast checker → · Palette generator →

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