#5A861C#5A861C

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

Color values

HEX#5A861C
RGBrgb(90, 134, 28)
HSLhsl(85, 65%, 32%)
HSVhsv(85, 79%, 53%)
CMYKcmyk(32.8%, 0%, 79.1%, 47.5%)
CIE-LABlab(51.04, -31.69, 48.33)
CIE-LCHlch(51.04, 57.79, 123.26°)
OKLaboklab(56.73% -0.0903 0.1071)
OKLCHoklch(56.73% 0.14 130.1)
XYZxyz(12.9511, 19.3073, 4.1427)
Luminance0.1931 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A861C #481C86
analogous
#867D1C #5A861C #25861C
triadic
#5A861C #1C5A86 #861C5A
tetradic
#5A861C #1C867D #481C86 #861C25
square
#5A861C #1C867D #481C86 #861C25
split-complementary
#5A861C #1C2586 #7D1C86
monochromatic
#162107 #385311 #5A861C #7CB927 #9BD844

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A861C#FFFFFF#000000##000000
##5A861C1.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)
#8C7C01
Deuteranopia (green-blind)
#867927
Tritanopia (blue-blind)
#5C8072
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5a861c;
/* rgb */ color: rgb(90, 134, 28);
/* oklch */ color: oklch(56.7% 0.140 130.1);
Tailwind
colors: {
  custom: {
    50: '#8da961',
    500: '#5a861c',
    950: '#000000',
  },
}
SCSS
$custom: #5a861c;
$custom-light: #8da961;
$custom-dark: #000000;
JSON
{
  "hex": "#5a861c",
  "rgb": {
    "r": 90,
    "g": 134,
    "b": 28
  },
  "hsl": {
    "h": 84.906,
    "s": 65.432,
    "l": 31.765
  },
  "oklch": {
    "l": 0.5673,
    "c": 0.14007,
    "h": 130.1
  },
  "luminance": 0.19308
}

Semantic roles & 50–950 ramp

primary
#5A861C
secondary
#7545B9
accent
#3FE886
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0D1005
muted
#7D7F7A

Preview Lab

Preview with #5A861C

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

Preview Lab → · Contrast checker → · Palette generator →

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