#5C811F#5C811F

#5C811F is a mid, vivid yellow-green. Relative luminance 0.181; OKLCH L 55.6% C 0.131 H 128.4°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#5C811F
RGBrgb(92, 129, 31)
HSLhsl(83, 61%, 31%)
HSVhsv(83, 76%, 51%)
CMYKcmyk(28.7%, 0%, 76%, 49.4%)
CIE-LABlab(49.59, -28.35, 45.91)
CIE-LCHlch(49.59, 53.96, 121.70°)
OKLaboklab(55.58% -0.0811 0.1025)
OKLCHoklch(55.58% 0.131 128.4)
XYZxyz(12.5112, 18.0745, 4.1256)
Luminance0.1807 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C811F #441F81
analogous
#81751F #5C811F #2B811F
triadic
#5C811F #1F5C81 #811F5C
tetradic
#5C811F #1F8175 #441F81 #811F2B
square
#5C811F #1F8175 #441F81 #811F2B
split-complementary
#5C811F #1F2B81 #751F81
monochromatic
#161E07 #395013 #5C811F #7FB22B #9ED347

Accessibility & contrast

On white

4.55
#5C811F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#5C811F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5C811F
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C811F#FFFFFF#000000##000000
##5C811F1.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#88780B
Deuteranopia (green-blind)
#837528
Tritanopia (blue-blind)
#5F7B6E
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #5c811f;
/* rgb */ color: rgb(92, 129, 31);
/* oklch */ color: oklch(55.6% 0.131 128.4);
Tailwind
colors: {
  custom: {
    50: '#8ea562',
    500: '#5c811f',
    950: '#000000',
  },
}
SCSS
$custom: #5c811f;
$custom-light: #8ea562;
$custom-dark: #000000;
JSON
{
  "hex": "#5c811f",
  "rgb": {
    "r": 92,
    "g": 129,
    "b": 31
  },
  "hsl": {
    "h": 82.653,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.55581,
    "c": 0.13068,
    "h": 128.4
  },
  "luminance": 0.18075
}

Semantic roles & 50–950 ramp

primary
#5C811F
secondary
#7148B4
accent
#43E480
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0D0F05
muted
#7D7F7A

Preview Lab

Preview with #5C811F

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

Preview Lab → · Contrast checker → · Palette generator →

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