#5C781A#5C781A

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

Color values

HEX#5C781A
RGBrgb(92, 120, 26)
HSLhsl(78, 64%, 29%)
HSVhsv(78, 78%, 47%)
CMYKcmyk(23.3%, 0%, 78.3%, 52.9%)
CIE-LABlab(46.69, -24.23, 44.94)
CIE-LCHlch(46.69, 51.05, 118.33°)
OKLaboklab(53.22% -0.0703 0.0996)
OKLCHoklch(53.22% 0.122 125.2)
XYZxyz(11.3166, 15.7827, 3.4272)
Luminance0.1578 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C781A #361A78
analogous
#78651A #5C781A #2D781A
triadic
#5C781A #1A5C78 #781A5C
tetradic
#5C781A #1A7865 #361A78 #781A2D
square
#5C781A #1A7865 #361A78 #781A2D
split-complementary
#5C781A #1A2D78 #651A78
monochromatic
#131905 #35460F #5C781A #83AA25 #A6D438

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5C781A#FFFFFF#000000##FFFFFF
##5C781A1.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)
#7F7005
Deuteranopia (green-blind)
#7B6E23
Tritanopia (blue-blind)
#607266
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5c781a;
/* rgb */ color: rgb(92, 120, 26);
/* oklch */ color: oklch(53.2% 0.122 125.2);
Tailwind
colors: {
  custom: {
    50: '#8d9f5f',
    500: '#5c781a',
    950: '#000000',
  },
}
SCSS
$custom: #5c781a;
$custom-light: #8d9f5f;
$custom-dark: #000000;
JSON
{
  "hex": "#5c781a",
  "rgb": {
    "r": 92,
    "g": 120,
    "b": 26
  },
  "hsl": {
    "h": 77.872,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.53219,
    "c": 0.12187,
    "h": 125.2
  },
  "luminance": 0.15783
}

Semantic roles & 50–950 ramp

primary
#5C781A
secondary
#6141AC
accent
#40E772
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0D0E05
muted
#7D7E79

Preview Lab

Preview with #5C781A

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

Preview Lab → · Contrast checker → · Palette generator →

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