#5A831B#5A831B

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

Color values

HEX#5A831B
RGBrgb(90, 131, 27)
HSLhsl(84, 66%, 31%)
HSVhsv(84, 79%, 51%)
CMYKcmyk(31.3%, 0%, 79.4%, 48.6%)
CIE-LABlab(50.08, -30.35, 47.75)
CIE-LCHlch(50.08, 56.58, 122.44°)
OKLaboklab(55.94% -0.0867 0.1057)
OKLCHoklch(55.94% 0.137 129.4)
XYZxyz(12.5305, 18.4850, 3.9445)
Luminance0.1848 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A831B #441B83
analogous
#83781B #5A831B #26831B
triadic
#5A831B #1B5A83 #831B5A
tetradic
#5A831B #1B8378 #441B83 #831B26
square
#5A831B #1B8378 #441B83 #831B26
split-complementary
#5A831B #1B2683 #781B83
monochromatic
#141E06 #375011 #5A831B #7DB625 #9CD841

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A831B#FFFFFF#000000##000000
##5A831B1.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)
#8A7901
Deuteranopia (green-blind)
#847626
Tritanopia (blue-blind)
#5D7D70
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5a831b;
/* rgb */ color: rgb(90, 131, 27);
/* oklch */ color: oklch(55.9% 0.137 129.4);
Tailwind
colors: {
  custom: {
    50: '#8da761',
    500: '#5a831b',
    950: '#000000',
  },
}
SCSS
$custom: #5a831b;
$custom-light: #8da761;
$custom-dark: #000000;
JSON
{
  "hex": "#5a831b",
  "rgb": {
    "r": 90,
    "g": 131,
    "b": 27
  },
  "hsl": {
    "h": 83.654,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.55942,
    "c": 0.13674,
    "h": 129.4
  },
  "luminance": 0.18485
}

Semantic roles & 50–950 ramp

primary
#5A831B
secondary
#7143B6
accent
#3FE982
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #5A831B

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

Preview Lab → · Contrast checker → · Palette generator →

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