#5C7412#5C7412

#5C7412 is a mid, vivid yellow-green. Relative luminance 0.148; OKLCH L 52.1% C 0.121 H 123.3°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#5C7412
RGBrgb(92, 116, 18)
HSLhsl(75, 73%, 26%)
HSVhsv(75, 84%, 45%)
CMYKcmyk(20.7%, 0%, 84.5%, 54.5%)
CIE-LABlab(45.37, -22.60, 46.34)
CIE-LCHlch(45.37, 51.55, 116.00°)
OKLaboklab(52.14% -0.0665 0.1011)
OKLCHoklch(52.14% 0.121 123.3)
XYZxyz(10.7684, 14.8097, 2.8634)
Luminance0.1481 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C7412 #2A1274
analogous
#745B12 #5C7412 #2B7412
triadic
#5C7412 #125C74 #74125C
tetradic
#5C7412 #12745B #2A1274 #74122B
square
#5C7412 #12745B #2A1274 #74122B
split-complementary
#5C7412 #122B74 #5B1274
monochromatic
#151A04 #323F0A #5C7412 #86A91A #B0DD23

Accessibility & contrast

On white

5.30
#5C7412 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#5C7412 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C7412
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C7412#FFFFFF#000000##FFFFFF
##5C74121.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C00
Deuteranopia (green-blind)
#786B1D
Tritanopia (blue-blind)
#616E62
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5c7412;
/* rgb */ color: rgb(92, 116, 18);
/* oklch */ color: oklch(52.1% 0.121 123.3);
Tailwind
colors: {
  custom: {
    50: '#8d9c5a',
    500: '#5c7412',
    950: '#000000',
  },
}
SCSS
$custom: #5c7412;
$custom-light: #8d9c5a;
$custom-dark: #000000;
JSON
{
  "hex": "#5c7412",
  "rgb": {
    "r": 92,
    "g": 116,
    "b": 18
  },
  "hsl": {
    "h": 74.694,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.52141,
    "c": 0.121,
    "h": 123.3
  },
  "luminance": 0.1481
}

Semantic roles & 50–950 ramp

primary
#5C7412
secondary
#5337AB
accent
#38F065
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0D0E04
muted
#7D7E79

Preview Lab

Preview with #5C7412

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

Preview Lab → · Contrast checker → · Palette generator →

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