#5A861B#5A861B

#5A861B is a mid, vivid yellow-green. Relative luminance 0.193; OKLCH L 56.7% C 0.141 H 130.1°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#5A861B
RGBrgb(90, 134, 27)
HSLhsl(85, 66%, 32%)
HSVhsv(85, 80%, 53%)
CMYKcmyk(32.8%, 0%, 79.9%, 47.5%)
CIE-LABlab(51.04, -31.75, 48.66)
CIE-LCHlch(51.04, 58.10, 123.13°)
OKLaboklab(56.72% -0.0905 0.1076)
OKLCHoklch(56.72% 0.141 130.1)
XYZxyz(12.9393, 19.3026, 4.0807)
Luminance0.1930 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A861B #471B86
analogous
#867D1B #5A861B #25861B
triadic
#5A861B #1B5A86 #861B5A
tetradic
#5A861B #1B867D #471B86 #861B25
square
#5A861B #1B867D #471B86 #861B25
split-complementary
#5A861B #1B2586 #7D1B86
monochromatic
#162006 #385311 #5A861B #7CB925 #9BD942

Accessibility & contrast

On white

4.32
#5A861B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#5A861B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A861B
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A861B#FFFFFF#000000##000000
##5A861B1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C00
Deuteranopia (green-blind)
#867826
Tritanopia (blue-blind)
#5C8072
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5a861b;
/* rgb */ color: rgb(90, 134, 27);
/* oklch */ color: oklch(56.7% 0.141 130.1);
Tailwind
colors: {
  custom: {
    50: '#8da961',
    500: '#5a861b',
    950: '#000000',
  },
}
SCSS
$custom: #5a861b;
$custom-light: #8da961;
$custom-dark: #000000;
JSON
{
  "hex": "#5a861b",
  "rgb": {
    "r": 90,
    "g": 134,
    "b": 27
  },
  "hsl": {
    "h": 84.673,
    "s": 66.46,
    "l": 31.569
  },
  "oklch": {
    "l": 0.56724,
    "c": 0.14061,
    "h": 130.1
  },
  "luminance": 0.19303
}

Semantic roles & 50–950 ramp

primary
#5A861B
secondary
#7444B9
accent
#3EE985
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0D1005
muted
#7D7F7A

Preview Lab

Preview with #5A861B

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

Preview Lab → · Contrast checker → · Palette generator →

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