#5C7212#5C7212

#5C7212 is a mid, moderate yellow-green. Relative luminance 0.144; OKLCH L 51.6% C 0.118 H 122.5°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#5C7212
RGBrgb(92, 114, 18)
HSLhsl(74, 73%, 26%)
HSVhsv(74, 84%, 45%)
CMYKcmyk(19.3%, 0%, 84.2%, 55.3%)
CIE-LABlab(44.74, -21.57, 45.77)
CIE-LCHlch(44.74, 50.60, 115.23°)
OKLaboklab(51.63% -0.0637 0.0999)
OKLCHoklch(51.63% 0.118 122.5)
XYZxyz(10.5403, 14.3536, 2.7874)
Luminance0.1435 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C7212 #281272
analogous
#725812 #5C7212 #2C7212
triadic
#5C7212 #125C72 #72125C
tetradic
#5C7212 #127258 #281272 #72122C
square
#5C7212 #127258 #281272 #72122C
split-complementary
#5C7212 #122C72 #581272
monochromatic
#151A04 #313D0A #5C7212 #87A71A #B1DC23

Accessibility & contrast

On white

5.43
#5C7212 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#5C7212 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C7212
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C7212#FFFFFF#000000##FFFFFF
##5C72121.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A00
Deuteranopia (green-blind)
#766A1C
Tritanopia (blue-blind)
#616C61
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5c7212;
/* rgb */ color: rgb(92, 114, 18);
/* oklch */ color: oklch(51.6% 0.118 122.5);
Tailwind
colors: {
  custom: {
    50: '#8d9a5a',
    500: '#5c7212',
    950: '#000000',
  },
}
SCSS
$custom: #5c7212;
$custom-light: #8d9a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#5c7212",
  "rgb": {
    "r": 92,
    "g": 114,
    "b": 18
  },
  "hsl": {
    "h": 73.75,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.51626,
    "c": 0.11847,
    "h": 122.5
  },
  "luminance": 0.14354
}

Semantic roles & 50–950 ramp

primary
#5C7212
secondary
#5137A9
accent
#38EF62
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0D0E04
muted
#7D7E79

Preview Lab

Preview with #5C7212

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

Preview Lab → · Contrast checker → · Palette generator →

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