#4C6717#4C6717

#4C6717 is a mid, moderate yellow-green. Relative luminance 0.113; OKLCH L 47.6% C 0.109 H 126.7°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#4C6717
RGBrgb(76, 103, 23)
HSLhsl(80, 63%, 25%)
HSVhsv(80, 78%, 40%)
CMYKcmyk(26.2%, 0%, 77.7%, 59.6%)
CIE-LABlab(40.08, -22.73, 39.31)
CIE-LCHlch(40.08, 45.41, 120.04°)
OKLaboklab(47.57% -0.0654 0.0877)
OKLCHoklch(47.57% 0.109 126.7)
XYZxyz(7.9854, 11.2987, 2.5706)
Luminance0.1130 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C6717 #321767
analogous
#675A17 #4C6717 #246717
triadic
#4C6717 #174C67 #67174C
tetradic
#4C6717 #17675A #321767 #671724
square
#4C6717 #17675A #321767 #671724
split-complementary
#4C6717 #172467 #5A1767
monochromatic
#121906 #27350C #4C6717 #719922 #96CB2D

Accessibility & contrast

On white

6.44
#4C6717 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#4C6717 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C6717
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C6717#FFFFFF#000000##FFFFFF
##4C67171.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6D6007
Deuteranopia (green-blind)
#695E1E
Tritanopia (blue-blind)
#4F6258
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #4c6717;
/* rgb */ color: rgb(76, 103, 23);
/* oklch */ color: oklch(47.6% 0.109 126.7);
Tailwind
colors: {
  custom: {
    50: '#81925a',
    500: '#4c6717',
    950: '#000000',
  },
}
SCSS
$custom: #4c6717;
$custom-light: #81925a;
$custom-dark: #000000;
JSON
{
  "hex": "#4c6717",
  "rgb": {
    "r": 76,
    "g": 103,
    "b": 23
  },
  "hsl": {
    "h": 80.25,
    "s": 63.492,
    "l": 24.706
  },
  "oklch": {
    "l": 0.47573,
    "c": 0.10938,
    "h": 126.7
  },
  "luminance": 0.11299
}

Semantic roles & 50–950 ramp

primary
#4C6717
secondary
#5D3D9D
accent
#41E779
background
#F8F9F5
surface
#EFF1E9
border
#CACBC5
text
#0B0D04
muted
#7C7E79

Preview Lab

Preview with #4C6717

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

Preview Lab → · Contrast checker → · Palette generator →

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