#5C8A1F#5C8A1F

#5C8A1F is a mid, vivid yellow-green. Relative luminance 0.206; OKLCH L 57.9% C 0.142 H 130.5°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#5C8A1F
RGBrgb(92, 138, 31)
HSLhsl(86, 63%, 33%)
HSVhsv(86, 78%, 54%)
CMYKcmyk(33.3%, 0%, 77.5%, 45.9%)
CIE-LABlab(52.45, -32.59, 48.68)
CIE-LCHlch(52.45, 58.58, 123.80°)
OKLaboklab(57.92% -0.0926 0.1083)
OKLCHoklch(57.92% 0.142 130.5)
XYZxyz(13.7493, 20.5507, 4.5383)
Luminance0.2055 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C8A1F #4D1F8A
analogous
#8A821F #5C8A1F #278A1F
triadic
#5C8A1F #1F5C8A #8A1F5C
tetradic
#5C8A1F #1F8A82 #4D1F8A #8A1F27
square
#5C8A1F #1F8A82 #4D1F8A #8A1F27
split-complementary
#5C8A1F #1F278A #821F8A
monochromatic
#192609 #3B5814 #5C8A1F #7DBC2A #9BD74C

Accessibility & contrast

On white

4.11
#5C8A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#5C8A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5C8A1F
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C8A1F#FFFFFF#000000##000000
##5C8A1F1.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F06
Deuteranopia (green-blind)
#8A7C2A
Tritanopia (blue-blind)
#5E8476
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5c8a1f;
/* rgb */ color: rgb(92, 138, 31);
/* oklch */ color: oklch(57.9% 0.142 130.5);
Tailwind
colors: {
  custom: {
    50: '#8eac63',
    500: '#5c8a1f',
    950: '#000000',
  },
}
SCSS
$custom: #5c8a1f;
$custom-light: #8eac63;
$custom-dark: #000000;
JSON
{
  "hex": "#5c8a1f",
  "rgb": {
    "r": 92,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 85.794,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.57915,
    "c": 0.14249,
    "h": 130.5
  },
  "luminance": 0.20551
}

Semantic roles & 50–950 ramp

primary
#5C8A1F
secondary
#7B4BBA
accent
#41E688
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5C8A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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