#5A782C#5A782C

#5A782C is a mid, moderate yellow-green. Relative luminance 0.158; OKLCH L 53.2% C 0.109 H 127.9°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#5A782C
RGBrgb(90, 120, 44)
HSLhsl(84, 46%, 32%)
HSVhsv(84, 63%, 47%)
CMYKcmyk(25%, 0%, 63.3%, 52.9%)
CIE-LABlab(46.70, -23.75, 37.30)
CIE-LCHlch(46.70, 44.22, 122.49°)
OKLaboklab(53.24% -0.0672 0.0863)
OKLCHoklch(53.24% 0.109 127.9)
XYZxyz(11.3875, 15.7882, 4.8299)
Luminance0.1579 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A782C #4A2C78
analogous
#78702C #5A782C #34782C
triadic
#5A782C #2C5A78 #782C5A
tetradic
#5A782C #2C7870 #4A2C78 #782C34
square
#5A782C #2C7870 #4A2C78 #782C34
split-complementary
#5A782C #2C3478 #702C78
monochromatic
#171E0B #384B1C #5A782C #7CA53C #9AC35B

Accessibility & contrast

On white

5.05
#5A782C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#5A782C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A782C
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A782C#FFFFFF#000000##FFFFFF
##5A782C1.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E7023
Deuteranopia (green-blind)
#7A6E31
Tritanopia (blue-blind)
#5D7368
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5a782c;
/* rgb */ color: rgb(90, 120, 44);
/* oklch */ color: oklch(53.2% 0.109 127.9);
Tailwind
colors: {
  custom: {
    50: '#8b9f68',
    500: '#5a782c',
    950: '#000000',
  },
}
SCSS
$custom: #5a782c;
$custom-light: #8b9f68;
$custom-dark: #000000;
JSON
{
  "hex": "#5a782c",
  "rgb": {
    "r": 90,
    "g": 120,
    "b": 44
  },
  "hsl": {
    "h": 83.684,
    "s": 46.341,
    "l": 32.157
  },
  "oklch": {
    "l": 0.53236,
    "c": 0.10935,
    "h": 127.9
  },
  "luminance": 0.15788
}

Semantic roles & 50–950 ramp

primary
#5A782C
secondary
#7757A9
accent
#52D686
background
#F8F9F6
surface
#F0F2EB
border
#CBCCC6
text
#0C0E06
muted
#7D7E7A

Preview Lab

Preview with #5A782C

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

Preview Lab → · Contrast checker → · Palette generator →

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