#5A781E#5A781E

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

Color values

HEX#5A781E
RGBrgb(90, 120, 30)
HSLhsl(80, 60%, 29%)
HSVhsv(80, 75%, 47%)
CMYKcmyk(25%, 0%, 75%, 52.9%)
CIE-LABlab(46.58, -24.84, 43.29)
CIE-LCHlch(46.58, 49.91, 119.85°)
OKLaboklab(53.1% -0.0715 0.0968)
OKLCHoklch(53.1% 0.12 126.4)
XYZxyz(11.1673, 15.7002, 3.6701)
Luminance0.1570 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A781E #3C1E78
analogous
#78691E #5A781E #2D781E
triadic
#5A781E #1E5A78 #781E5A
tetradic
#5A781E #1E7869 #3C1E78 #781E2D
square
#5A781E #1E7869 #3C1E78 #781E2D
split-complementary
#5A781E #1E2D78 #691E78
monochromatic
#121806 #354712 #5A781E #7FA92A #A0CF41

Accessibility & contrast

On white

5.07
#5A781E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5A781E
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A781E#FFFFFF#000000##FFFFFF
##5A781E1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F700E
Deuteranopia (green-blind)
#7A6E26
Tritanopia (blue-blind)
#5E7267
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5a781e;
/* rgb */ color: rgb(90, 120, 30);
/* oklch */ color: oklch(53.1% 0.120 126.4);
Tailwind
colors: {
  custom: {
    50: '#8c9f60',
    500: '#5a781e',
    950: '#000000',
  },
}
SCSS
$custom: #5a781e;
$custom-light: #8c9f60;
$custom-dark: #000000;
JSON
{
  "hex": "#5a781e",
  "rgb": {
    "r": 90,
    "g": 120,
    "b": 30
  },
  "hsl": {
    "h": 80,
    "s": 60,
    "l": 29.412
  },
  "oklch": {
    "l": 0.53104,
    "c": 0.12038,
    "h": 126.4
  },
  "luminance": 0.157
}

Semantic roles & 50–950 ramp

primary
#5A781E
secondary
#6846AC
accent
#45E379
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5A781E

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

Preview Lab → · Contrast checker → · Palette generator →

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