#5A862A#5A862A

#5A862A is a mid, vivid yellow-green. Relative luminance 0.194; OKLCH L 56.8% C 0.131 H 131.4°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#5A862A
RGBrgb(90, 134, 42)
HSLhsl(89, 52%, 35%)
HSVhsv(89, 69%, 53%)
CMYKcmyk(32.8%, 0%, 68.7%, 47.5%)
CIE-LABlab(51.14, -30.74, 43.01)
CIE-LCHlch(51.14, 52.87, 125.55°)
OKLaboklab(56.84% -0.0865 0.0981)
OKLCHoklch(56.84% 0.131 131.4)
XYZxyz(13.1593, 19.3906, 5.2395)
Luminance0.1939 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A862A #562A86
analogous
#86842A #5A862A #2C862A
triadic
#5A862A #2A5A86 #862A5A
tetradic
#5A862A #2A8684 #562A86 #862A2C
square
#5A862A #2A8684 #562A86 #862A2C
split-complementary
#5A862A #2A2C86 #842A86
monochromatic
#1B290D #3B571B #5A862A #79B539 #98CD5E

Accessibility & contrast

On white

4.30
#5A862A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#5A862A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A862A
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A862A#FFFFFF#000000##000000
##5A862A1.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C1D
Deuteranopia (green-blind)
#867932
Tritanopia (blue-blind)
#5C8073
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5a862a;
/* rgb */ color: rgb(90, 134, 42);
/* oklch */ color: oklch(56.8% 0.131 131.4);
Tailwind
colors: {
  custom: {
    50: '#8ca969',
    500: '#5a862a',
    950: '#000000',
  },
}
SCSS
$custom: #5a862a;
$custom-light: #8ca969;
$custom-dark: #000000;
JSON
{
  "hex": "#5a862a",
  "rgb": {
    "r": 90,
    "g": 134,
    "b": 42
  },
  "hsl": {
    "h": 88.696,
    "s": 52.273,
    "l": 34.51
  },
  "oklch": {
    "l": 0.56839,
    "c": 0.13084,
    "h": 131.4
  },
  "luminance": 0.19391
}

Semantic roles & 50–950 ramp

primary
#5A862A
secondary
#845AB2
accent
#4CDC91
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #5A862A

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

Preview Lab → · Contrast checker → · Palette generator →

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