#4C6A17#4C6A17

#4C6A17 is a mid, moderate yellow-green. Relative luminance 0.119; OKLCH L 48.4% C 0.113 H 127.8°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#4C6A17
RGBrgb(76, 106, 23)
HSLhsl(82, 64%, 25%)
HSVhsv(82, 78%, 42%)
CMYKcmyk(28.3%, 0%, 78.3%, 58.4%)
CIE-LABlab(41.07, -24.25, 40.27)
CIE-LCHlch(41.07, 47.01, 121.05°)
OKLaboklab(48.38% -0.0696 0.0897)
OKLCHoklch(48.38% 0.113 127.8)
XYZxyz(8.2892, 11.9062, 2.6719)
Luminance0.1191 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C6A17 #35176A
analogous
#6A5E17 #4C6A17 #226A17
triadic
#4C6A17 #174C6A #6A174C
tetradic
#4C6A17 #176A5E #35176A #6A1722
square
#4C6A17 #176A5E #35176A #6A1722
split-complementary
#4C6A17 #17226A #5E176A
monochromatic
#121905 #28380C #4C6A17 #709C22 #94CF2D

Accessibility & contrast

On white

6.21
#4C6A17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#4C6A17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C6A17
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C6A17#FFFFFF#000000##FFFFFF
##4C6A171.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#706206
Deuteranopia (green-blind)
#6C601F
Tritanopia (blue-blind)
#4F655A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4c6a17;
/* rgb */ color: rgb(76, 106, 23);
/* oklch */ color: oklch(48.4% 0.113 127.8);
Tailwind
colors: {
  custom: {
    50: '#81945b',
    500: '#4c6a17',
    950: '#000000',
  },
}
SCSS
$custom: #4c6a17;
$custom-light: #81945b;
$custom-dark: #000000;
JSON
{
  "hex": "#4c6a17",
  "rgb": {
    "r": 76,
    "g": 106,
    "b": 23
  },
  "hsl": {
    "h": 81.687,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.48375,
    "c": 0.11349,
    "h": 127.8
  },
  "luminance": 0.11906
}

Semantic roles & 50–950 ramp

primary
#4C6A17
secondary
#613DA0
accent
#40E77D
background
#F8F9F5
surface
#EFF1E9
border
#CACBC5
text
#0B0D04
muted
#7C7E79

Preview Lab

Preview with #4C6A17

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

Preview Lab → · Contrast checker → · Palette generator →

#4C6A17 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva