#5C821F#5C821F

#5C821F is a mid, vivid yellow-green. Relative luminance 0.183; OKLCH L 55.8% C 0.132 H 128.6°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#5C821F
RGBrgb(92, 130, 31)
HSLhsl(83, 61%, 32%)
HSVhsv(83, 76%, 51%)
CMYKcmyk(29.2%, 0%, 76.2%, 49%)
CIE-LABlab(49.91, -28.83, 46.22)
CIE-LCHlch(49.91, 54.47, 121.96°)
OKLaboklab(55.84% -0.0824 0.1031)
OKLCHoklch(55.84% 0.132 128.6)
XYZxyz(12.6436, 18.3392, 4.1697)
Luminance0.1834 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C821F #451F82
analogous
#82771F #5C821F #2B821F
triadic
#5C821F #1F5C82 #821F5C
tetradic
#5C821F #1F8277 #451F82 #821F2B
square
#5C821F #1F8277 #451F82 #821F2B
split-complementary
#5C821F #1F2B82 #771F82
monochromatic
#161F07 #395113 #5C821F #7FB32B #9ED348

Accessibility & contrast

On white

4.50
#5C821F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#5C821F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5C821F
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C821F#FFFFFF#000000##000000
##5C821F1.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#89780B
Deuteranopia (green-blind)
#837628
Tritanopia (blue-blind)
#5F7C6F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5c821f;
/* rgb */ color: rgb(92, 130, 31);
/* oklch */ color: oklch(55.8% 0.132 128.6);
Tailwind
colors: {
  custom: {
    50: '#8ea662',
    500: '#5c821f',
    950: '#000000',
  },
}
SCSS
$custom: #5c821f;
$custom-light: #8ea662;
$custom-dark: #000000;
JSON
{
  "hex": "#5c821f",
  "rgb": {
    "r": 92,
    "g": 130,
    "b": 31
  },
  "hsl": {
    "h": 83.03,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.5584,
    "c": 0.132,
    "h": 128.6
  },
  "luminance": 0.1834
}

Semantic roles & 50–950 ramp

primary
#5C821F
secondary
#7248B5
accent
#43E581
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0D0F05
muted
#7D7F7A

Preview Lab

Preview with #5C821F

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

Preview Lab → · Contrast checker → · Palette generator →

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