#5C7312#5C7312

#5C7312 is a mid, moderate yellow-green. Relative luminance 0.146; OKLCH L 51.9% C 0.120 H 122.9°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#5C7312
RGBrgb(92, 115, 18)
HSLhsl(74, 73%, 26%)
HSVhsv(74, 84%, 45%)
CMYKcmyk(20%, 0%, 84.3%, 54.9%)
CIE-LABlab(45.05, -22.09, 46.06)
CIE-LCHlch(45.05, 51.08, 115.62°)
OKLaboklab(51.88% -0.0651 0.1005)
OKLCHoklch(51.88% 0.12 122.9)
XYZxyz(10.6537, 14.5804, 2.8252)
Luminance0.1458 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C7312 #291273
analogous
#735912 #5C7312 #2B7312
triadic
#5C7312 #125C73 #73125C
tetradic
#5C7312 #127359 #291273 #73122B
square
#5C7312 #127359 #291273 #73122B
split-complementary
#5C7312 #122B73 #591273
monochromatic
#151A04 #323E0A #5C7312 #86A81A #B1DD23

Accessibility & contrast

On white

5.36
#5C7312 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#5C7312 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C7312
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C7312#FFFFFF#000000##FFFFFF
##5C73121.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B00
Deuteranopia (green-blind)
#776A1D
Tritanopia (blue-blind)
#616D62
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5c7312;
/* rgb */ color: rgb(92, 115, 18);
/* oklch */ color: oklch(51.9% 0.120 122.9);
Tailwind
colors: {
  custom: {
    50: '#8d9b5a',
    500: '#5c7312',
    950: '#000000',
  },
}
SCSS
$custom: #5c7312;
$custom-light: #8d9b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#5c7312",
  "rgb": {
    "r": 92,
    "g": 115,
    "b": 18
  },
  "hsl": {
    "h": 74.227,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.51883,
    "c": 0.11973,
    "h": 122.9
  },
  "luminance": 0.1458
}

Semantic roles & 50–950 ramp

primary
#5C7312
secondary
#5237AA
accent
#38F064
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0D0E04
muted
#7D7E79

Preview Lab

Preview with #5C7312

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

Preview Lab → · Contrast checker → · Palette generator →

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