#5C781F#5C781F

#5C781F is a mid, moderate yellow-green. Relative luminance 0.158; OKLCH L 53.3% C 0.119 H 125.6°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#5C781F
RGBrgb(92, 120, 31)
HSLhsl(79, 59%, 30%)
HSVhsv(79, 74%, 47%)
CMYKcmyk(23.3%, 0%, 74.2%, 52.9%)
CIE-LABlab(46.72, -23.93, 43.08)
CIE-LCHlch(46.72, 49.28, 119.05°)
OKLaboklab(53.26% -0.069 0.0965)
OKLCHoklch(53.26% 0.119 125.6)
XYZxyz(11.3775, 15.8070, 3.7477)
Luminance0.1581 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C781F #3B1F78
analogous
#78671F #5C781F #30781F
triadic
#5C781F #1F5C78 #781F5C
tetradic
#5C781F #1F7867 #3B1F78 #781F30
square
#5C781F #1F7867 #3B1F78 #781F30
split-complementary
#5C781F #1F3078 #671F78
monochromatic
#131806 #374712 #5C781F #81A92C #A3CE43

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5C781F#FFFFFF#000000##FFFFFF
##5C781F1.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)
#7F700F
Deuteranopia (green-blind)
#7B6E27
Tritanopia (blue-blind)
#607267
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5c781f;
/* rgb */ color: rgb(92, 120, 31);
/* oklch */ color: oklch(53.3% 0.119 125.6);
Tailwind
colors: {
  custom: {
    50: '#8d9f61',
    500: '#5c781f',
    950: '#000000',
  },
}
SCSS
$custom: #5c781f;
$custom-light: #8d9f61;
$custom-dark: #000000;
JSON
{
  "hex": "#5c781f",
  "rgb": {
    "r": 92,
    "g": 120,
    "b": 31
  },
  "hsl": {
    "h": 78.876,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.53256,
    "c": 0.11867,
    "h": 125.6
  },
  "luminance": 0.15807
}

Semantic roles & 50–950 ramp

primary
#5C781F
secondary
#6747AB
accent
#46E277
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5C781F

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

Preview Lab → · Contrast checker → · Palette generator →

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