#5C7B1C#5C7B1C

#5C7B1C is a mid, vivid yellow-green. Relative luminance 0.165; OKLCH L 54.0% C 0.125 H 126.4°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#5C7B1C
RGBrgb(92, 123, 28)
HSLhsl(80, 63%, 30%)
HSVhsv(80, 77%, 48%)
CMYKcmyk(25.2%, 0%, 77.2%, 51.8%)
CIE-LABlab(47.66, -25.61, 45.14)
CIE-LCHlch(47.66, 51.90, 119.57°)
OKLaboklab(54.01% -0.0739 0.1003)
OKLCHoklch(54.01% 0.125 126.4)
XYZxyz(11.7063, 16.5249, 3.6713)
Luminance0.1653 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C7B1C #3B1C7B
analogous
#7B6B1C #5C7B1C #2D7B1C
triadic
#5C7B1C #1C5C7B #7B1C5C
tetradic
#5C7B1C #1C7B6B #3B1C7B #7B1C2D
square
#5C7B1C #1C7B6B #3B1C7B #7B1C2D
split-complementary
#5C7B1C #1C2D7B #6B1C7B
monochromatic
#131906 #374911 #5C7B1C #81AD27 #A3D33E

Accessibility & contrast

On white

4.88
#5C7B1C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#5C7B1C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C7B1C
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C7B1C#FFFFFF#000000##FFFFFF
##5C7B1C1.004.884.314.88
#FFFFFF4.881.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827207
Deuteranopia (green-blind)
#7E7125
Tritanopia (blue-blind)
#607569
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5c7b1c;
/* rgb */ color: rgb(92, 123, 28);
/* oklch */ color: oklch(54.0% 0.125 126.4);
Tailwind
colors: {
  custom: {
    50: '#8da160',
    500: '#5c7b1c',
    950: '#000000',
  },
}
SCSS
$custom: #5c7b1c;
$custom-light: #8da160;
$custom-dark: #000000;
JSON
{
  "hex": "#5c7b1c",
  "rgb": {
    "r": 92,
    "g": 123,
    "b": 28
  },
  "hsl": {
    "h": 79.579,
    "s": 62.914,
    "l": 29.608
  },
  "oklch": {
    "l": 0.54007,
    "c": 0.12461,
    "h": 126.4
  },
  "luminance": 0.16525
}

Semantic roles & 50–950 ramp

primary
#5C7B1C
secondary
#6744AF
accent
#42E677
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0D0F05
muted
#7D7E79

Preview Lab

Preview with #5C7B1C

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

Preview Lab → · Contrast checker → · Palette generator →

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