#5A831F#5A831F

#5A831F is a mid, vivid yellow-green. Relative luminance 0.185; OKLCH L 56.0% C 0.134 H 129.7°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#5A831F
RGBrgb(90, 131, 31)
HSLhsl(85, 62%, 32%)
HSVhsv(85, 76%, 51%)
CMYKcmyk(31.3%, 0%, 76.3%, 48.6%)
CIE-LABlab(50.10, -30.11, 46.37)
CIE-LCHlch(50.10, 55.29, 123.00°)
OKLaboklab(55.97% -0.0858 0.1035)
OKLCHoklch(55.97% 0.134 129.7)
XYZxyz(12.5800, 18.5048, 4.2050)
Luminance0.1850 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A831F #481F83
analogous
#837A1F #5A831F #28831F
triadic
#5A831F #1F5A83 #831F5A
tetradic
#5A831F #1F837A #481F83 #831F28
square
#5A831F #1F837A #481F83 #831F28
split-complementary
#5A831F #1F2883 #7A1F83
monochromatic
#162008 #385213 #5A831F #7CB42B #9BD449

Accessibility & contrast

On white

4.47
#5A831F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#5A831F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A831F
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A831F#FFFFFF#000000##000000
##5A831F1.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#89790A
Deuteranopia (green-blind)
#847629
Tritanopia (blue-blind)
#5D7D70
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5a831f;
/* rgb */ color: rgb(90, 131, 31);
/* oklch */ color: oklch(56.0% 0.134 129.7);
Tailwind
colors: {
  custom: {
    50: '#8ca762',
    500: '#5a831f',
    950: '#000000',
  },
}
SCSS
$custom: #5a831f;
$custom-light: #8ca762;
$custom-dark: #000000;
JSON
{
  "hex": "#5a831f",
  "rgb": {
    "r": 90,
    "g": 131,
    "b": 31
  },
  "hsl": {
    "h": 84.6,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.55969,
    "c": 0.1344,
    "h": 129.7
  },
  "luminance": 0.18505
}

Semantic roles & 50–950 ramp

primary
#5A831F
secondary
#7548B6
accent
#43E585
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F05
muted
#7D7F7A

Preview Lab

Preview with #5A831F

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

Preview Lab → · Contrast checker → · Palette generator →

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