#5C781B#5C781B

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

Color values

HEX#5C781B
RGBrgb(92, 120, 27)
HSLhsl(78, 63%, 29%)
HSVhsv(78, 78%, 47%)
CMYKcmyk(23.3%, 0%, 77.5%, 52.9%)
CIE-LABlab(46.69, -24.17, 44.58)
CIE-LCHlch(46.69, 50.71, 118.47°)
OKLaboklab(53.23% -0.07 0.099)
OKLCHoklch(53.23% 0.121 125.3)
XYZxyz(11.3280, 15.7872, 3.4871)
Luminance0.1579 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C781B #371B78
analogous
#78661B #5C781B #2E781B
triadic
#5C781B #1B5C78 #781B5C
tetradic
#5C781B #1B7866 #371B78 #781B2E
square
#5C781B #1B7866 #371B78 #781B2E
split-complementary
#5C781B #1B2E78 #661B78
monochromatic
#131906 #364610 #5C781B #82AA26 #A5D33B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5C781B#FFFFFF#000000##FFFFFF
##5C781B1.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)
#7F7007
Deuteranopia (green-blind)
#7B6E24
Tritanopia (blue-blind)
#607266
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5c781b;
/* rgb */ color: rgb(92, 120, 27);
/* oklch */ color: oklch(53.2% 0.121 125.3);
Tailwind
colors: {
  custom: {
    50: '#8d9f5f',
    500: '#5c781b',
    950: '#000000',
  },
}
SCSS
$custom: #5c781b;
$custom-light: #8d9f5f;
$custom-dark: #000000;
JSON
{
  "hex": "#5c781b",
  "rgb": {
    "r": 92,
    "g": 120,
    "b": 27
  },
  "hsl": {
    "h": 78.065,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.53226,
    "c": 0.12127,
    "h": 125.3
  },
  "luminance": 0.15787
}

Semantic roles & 50–950 ramp

primary
#5C781B
secondary
#6243AC
accent
#41E673
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0D0E05
muted
#7D7E79

Preview Lab

Preview with #5C781B

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

Preview Lab → · Contrast checker → · Palette generator →

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