#5A781D#5A781D

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

Color values

HEX#5A781D
RGBrgb(90, 120, 29)
HSLhsl(80, 61%, 29%)
HSVhsv(80, 76%, 47%)
CMYKcmyk(25%, 0%, 75.8%, 52.9%)
CIE-LABlab(46.57, -24.91, 43.67)
CIE-LCHlch(46.57, 50.27, 119.70°)
OKLaboklab(53.1% -0.0718 0.0975)
OKLCHoklch(53.1% 0.121 126.4)
XYZxyz(11.1547, 15.6951, 3.6039)
Luminance0.1570 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A781D #3B1D78
analogous
#78691D #5A781D #2D781D
triadic
#5A781D #1D5A78 #781D5A
tetradic
#5A781D #1D7869 #3B1D78 #781D2D
square
#5A781D #1D7869 #3B1D78 #781D2D
split-complementary
#5A781D #1D2D78 #691D78
monochromatic
#121906 #354711 #5A781D #7FA929 #A1D13F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A781D#FFFFFF#000000##FFFFFF
##5A781D1.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)
#7F700B
Deuteranopia (green-blind)
#7B6E25
Tritanopia (blue-blind)
#5E7266
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5a781d;
/* rgb */ color: rgb(90, 120, 29);
/* oklch */ color: oklch(53.1% 0.121 126.4);
Tailwind
colors: {
  custom: {
    50: '#8c9f60',
    500: '#5a781d',
    950: '#000000',
  },
}
SCSS
$custom: #5a781d;
$custom-light: #8c9f60;
$custom-dark: #000000;
JSON
{
  "hex": "#5a781d",
  "rgb": {
    "r": 90,
    "g": 120,
    "b": 29
  },
  "hsl": {
    "h": 79.78,
    "s": 61.074,
    "l": 29.216
  },
  "oklch": {
    "l": 0.53096,
    "c": 0.12104,
    "h": 126.4
  },
  "luminance": 0.15695
}

Semantic roles & 50–950 ramp

primary
#5A781D
secondary
#6745AC
accent
#44E479
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5A781D

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

Preview Lab → · Contrast checker → · Palette generator →

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