#5C7012#5C7012

#5C7012 is a mid, moderate yellow-green. Relative luminance 0.139; OKLCH L 51.1% C 0.116 H 121.7°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#5C7012
RGBrgb(92, 112, 18)
HSLhsl(73, 72%, 25%)
HSVhsv(73, 84%, 44%)
CMYKcmyk(17.9%, 0%, 83.9%, 56.1%)
CIE-LABlab(44.10, -20.54, 45.20)
CIE-LCHlch(44.10, 49.65, 114.43°)
OKLaboklab(51.11% -0.0608 0.0987)
OKLCHoklch(51.11% 0.116 121.7)
XYZxyz(10.3172, 13.9073, 2.7130)
Luminance0.1391 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C7012 #261270
analogous
#705512 #5C7012 #2D7012
triadic
#5C7012 #125C70 #70125C
tetradic
#5C7012 #127055 #261270 #70122D
square
#5C7012 #127055 #261270 #70122D
split-complementary
#5C7012 #122D70 #551270
monochromatic
#161A04 #313B0A #5C7012 #87A51A #B3D923

Accessibility & contrast

On white

5.55
#5C7012 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#5C7012 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C7012
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C7012#FFFFFF#000000##FFFFFF
##5C70121.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776900
Deuteranopia (green-blind)
#75681C
Tritanopia (blue-blind)
#626A5F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5c7012;
/* rgb */ color: rgb(92, 112, 18);
/* oklch */ color: oklch(51.1% 0.116 121.7);
Tailwind
colors: {
  custom: {
    50: '#8d995a',
    500: '#5c7012',
    950: '#000000',
  },
}
SCSS
$custom: #5c7012;
$custom-light: #8d995a;
$custom-dark: #000000;
JSON
{
  "hex": "#5c7012",
  "rgb": {
    "r": 92,
    "g": 112,
    "b": 18
  },
  "hsl": {
    "h": 72.766,
    "s": 72.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.51112,
    "c": 0.11595,
    "h": 121.7
  },
  "luminance": 0.13907
}

Semantic roles & 50–950 ramp

primary
#5C7012
secondary
#4F37A7
accent
#39EF60
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0D0D04
muted
#7D7E79

Preview Lab

Preview with #5C7012

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

Preview Lab → · Contrast checker → · Palette generator →

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