#5A841C#5A841C

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

Color values

HEX#5A841C
RGBrgb(90, 132, 28)
HSLhsl(84, 65%, 31%)
HSVhsv(84, 79%, 52%)
CMYKcmyk(31.8%, 0%, 78.8%, 48.2%)
CIE-LABlab(50.40, -30.76, 47.72)
CIE-LCHlch(50.40, 56.78, 122.81°)
OKLaboklab(56.21% -0.0878 0.1058)
OKLCHoklch(56.21% 0.137 129.7)
XYZxyz(12.6773, 18.7596, 4.0514)
Luminance0.1876 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A841C #461C84
analogous
#847A1C #5A841C #26841C
triadic
#5A841C #1C5A84 #841C5A
tetradic
#5A841C #1C847A #461C84 #841C26
square
#5A841C #1C847A #461C84 #841C26
split-complementary
#5A841C #1C2684 #7A1C84
monochromatic
#151F07 #385211 #5A841C #7CB627 #9BD743

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A841C#FFFFFF#000000##000000
##5A841C1.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)
#8A7A02
Deuteranopia (green-blind)
#857727
Tritanopia (blue-blind)
#5D7E70
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5a841c;
/* rgb */ color: rgb(90, 132, 28);
/* oklch */ color: oklch(56.2% 0.137 129.7);
Tailwind
colors: {
  custom: {
    50: '#8da861',
    500: '#5a841c',
    950: '#000000',
  },
}
SCSS
$custom: #5a841c;
$custom-light: #8da861;
$custom-dark: #000000;
JSON
{
  "hex": "#5a841c",
  "rgb": {
    "r": 90,
    "g": 132,
    "b": 28
  },
  "hsl": {
    "h": 84.231,
    "s": 65,
    "l": 31.373
  },
  "oklch": {
    "l": 0.56209,
    "c": 0.13747,
    "h": 129.7
  },
  "luminance": 0.1876
}

Semantic roles & 50–950 ramp

primary
#5A841C
secondary
#7345B7
accent
#40E884
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F05
muted
#7D7F7A

Preview Lab

Preview with #5A841C

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

Preview Lab → · Contrast checker → · Palette generator →

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