#5A841B#5A841B

#5A841B is a mid, vivid yellow-green. Relative luminance 0.188; OKLCH L 56.2% C 0.138 H 129.6°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#5A841B
RGBrgb(90, 132, 27)
HSLhsl(84, 66%, 31%)
HSVhsv(84, 80%, 52%)
CMYKcmyk(31.8%, 0%, 79.5%, 48.2%)
CIE-LABlab(50.40, -30.82, 48.05)
CIE-LCHlch(50.40, 57.09, 122.67°)
OKLaboklab(56.2% -0.088 0.1063)
OKLCHoklch(56.2% 0.138 129.6)
XYZxyz(12.6655, 18.7549, 3.9895)
Luminance0.1875 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A841B #451B84
analogous
#84791B #5A841B #25841B
triadic
#5A841B #1B5A84 #841B5A
tetradic
#5A841B #1B8479 #451B84 #841B25
square
#5A841B #1B8479 #451B84 #841B25
split-complementary
#5A841B #1B2584 #791B84
monochromatic
#151E06 #375111 #5A841B #7DB725 #9CD841

Accessibility & contrast

On white

4.42
#5A841B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#5A841B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A841B
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A841B#FFFFFF#000000##000000
##5A841B1.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#857726
Tritanopia (blue-blind)
#5D7E70
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5a841b;
/* rgb */ color: rgb(90, 132, 27);
/* oklch */ color: oklch(56.2% 0.138 129.6);
Tailwind
colors: {
  custom: {
    50: '#8da861',
    500: '#5a841b',
    950: '#000000',
  },
}
SCSS
$custom: #5a841b;
$custom-light: #8da861;
$custom-dark: #000000;
JSON
{
  "hex": "#5a841b",
  "rgb": {
    "r": 90,
    "g": 132,
    "b": 27
  },
  "hsl": {
    "h": 84,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.56203,
    "c": 0.13803,
    "h": 129.6
  },
  "luminance": 0.18755
}

Semantic roles & 50–950 ramp

primary
#5A841B
secondary
#7243B7
accent
#3FE983
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0D0F05
muted
#7D7F7A

Preview Lab

Preview with #5A841B

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

Preview Lab → · Contrast checker → · Palette generator →

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