#5A781B#5A781B

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

Color values

HEX#5A781B
RGBrgb(90, 120, 27)
HSLhsl(79, 63%, 29%)
HSVhsv(79, 78%, 47%)
CMYKcmyk(25%, 0%, 77.5%, 52.9%)
CIE-LABlab(46.56, -25.03, 44.40)
CIE-LCHlch(46.56, 50.97, 119.41°)
OKLaboklab(53.08% -0.0723 0.0987)
OKLCHoklch(53.08% 0.122 126.2)
XYZxyz(11.1308, 15.6856, 3.4779)
Luminance0.1569 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A781B #391B78
analogous
#78681B #5A781B #2C781B
triadic
#5A781B #1B5A78 #781B5A
tetradic
#5A781B #1B7868 #391B78 #781B2C
square
#5A781B #1B7868 #391B78 #781B2C
split-complementary
#5A781B #1B2C78 #681B78
monochromatic
#131906 #354610 #5A781B #7FAA26 #A2D33B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A781B#FFFFFF#000000##FFFFFF
##5A781B1.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)
#7F6F07
Deuteranopia (green-blind)
#7B6E24
Tritanopia (blue-blind)
#5E7266
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5a781b;
/* rgb */ color: rgb(90, 120, 27);
/* oklch */ color: oklch(53.1% 0.122 126.2);
Tailwind
colors: {
  custom: {
    50: '#8c9f5f',
    500: '#5a781b',
    950: '#000000',
  },
}
SCSS
$custom: #5a781b;
$custom-light: #8c9f5f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a781b",
  "rgb": {
    "r": 90,
    "g": 120,
    "b": 27
  },
  "hsl": {
    "h": 79.355,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.53082,
    "c": 0.1223,
    "h": 126.2
  },
  "luminance": 0.15686
}

Semantic roles & 50–950 ramp

primary
#5A781B
secondary
#6543AC
accent
#41E677
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5A781B

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

Preview Lab → · Contrast checker → · Palette generator →

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