#5A831A#5A831A

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

Color values

HEX#5A831A
RGBrgb(90, 131, 26)
HSLhsl(83, 67%, 31%)
HSVhsv(83, 80%, 51%)
CMYKcmyk(31.3%, 0%, 80.2%, 48.6%)
CIE-LABlab(50.07, -30.40, 48.08)
CIE-LCHlch(50.07, 56.89, 122.31°)
OKLaboklab(55.94% -0.0869 0.1062)
OKLCHoklch(55.94% 0.137 129.3)
XYZxyz(12.5192, 18.4805, 3.8846)
Luminance0.1848 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A831A #431A83
analogous
#83771A #5A831A #25831A
triadic
#5A831A #1A5A83 #831A5A
tetradic
#5A831A #1A8377 #431A83 #831A25
square
#5A831A #1A8377 #431A83 #831A25
split-complementary
#5A831A #1A2583 #771A83
monochromatic
#141D06 #375010 #5A831A #7DB624 #9DD93F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A831A#FFFFFF#000000##000000
##5A831A1.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)
#8A7900
Deuteranopia (green-blind)
#847625
Tritanopia (blue-blind)
#5D7D70
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5a831a;
/* rgb */ color: rgb(90, 131, 26);
/* oklch */ color: oklch(55.9% 0.137 129.3);
Tailwind
colors: {
  custom: {
    50: '#8da760',
    500: '#5a831a',
    950: '#000000',
  },
}
SCSS
$custom: #5a831a;
$custom-light: #8da760;
$custom-dark: #000000;
JSON
{
  "hex": "#5a831a",
  "rgb": {
    "r": 90,
    "g": 131,
    "b": 26
  },
  "hsl": {
    "h": 83.429,
    "s": 66.879,
    "l": 30.784
  },
  "oklch": {
    "l": 0.55936,
    "c": 0.13728,
    "h": 129.3
  },
  "luminance": 0.18481
}

Semantic roles & 50–950 ramp

primary
#5A831A
secondary
#7042B7
accent
#3EEA81
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0D0F05
muted
#7D7F79

Preview Lab

Preview with #5A831A

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

Preview Lab → · Contrast checker → · Palette generator →

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