#5A781A#5A781A

#5A781A is a mid, vivid yellow-green. Relative luminance 0.157; OKLCH L 53.1% C 0.123 H 126.1°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#5A781A
RGBrgb(90, 120, 26)
HSLhsl(79, 64%, 29%)
HSVhsv(79, 78%, 47%)
CMYKcmyk(25%, 0%, 78.3%, 52.9%)
CIE-LABlab(46.55, -25.09, 44.76)
CIE-LCHlch(46.55, 51.31, 119.27°)
OKLaboklab(53.08% -0.0725 0.0993)
OKLCHoklch(53.08% 0.123 126.1)
XYZxyz(11.1194, 15.6810, 3.4180)
Luminance0.1568 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A781A #381A78
analogous
#78671A #5A781A #2B781A
triadic
#5A781A #1A5A78 #781A5A
tetradic
#5A781A #1A7867 #381A78 #781A2B
square
#5A781A #1A7867 #381A78 #781A2B
split-complementary
#5A781A #1A2B78 #671A78
monochromatic
#131905 #34460F #5A781A #80AA25 #A2D438

Accessibility & contrast

On white

5.08
#5A781A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#5A781A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A781A
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A781A#FFFFFF#000000##FFFFFF
##5A781A1.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F05
Deuteranopia (green-blind)
#7B6E23
Tritanopia (blue-blind)
#5E7266
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5a781a;
/* rgb */ color: rgb(90, 120, 26);
/* oklch */ color: oklch(53.1% 0.123 126.1);
Tailwind
colors: {
  custom: {
    50: '#8c9f5f',
    500: '#5a781a',
    950: '#000000',
  },
}
SCSS
$custom: #5a781a;
$custom-light: #8c9f5f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a781a",
  "rgb": {
    "r": 90,
    "g": 120,
    "b": 26
  },
  "hsl": {
    "h": 79.149,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.53075,
    "c": 0.12291,
    "h": 126.1
  },
  "luminance": 0.15681
}

Semantic roles & 50–950 ramp

primary
#5A781A
secondary
#6441AC
accent
#40E776
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5A781A

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

Preview Lab → · Contrast checker → · Palette generator →

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