#4C6917#4C6917

#4C6917 is a mid, moderate yellow-green. Relative luminance 0.117; OKLCH L 48.1% C 0.112 H 127.5°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#4C6917
RGBrgb(76, 105, 23)
HSLhsl(81, 64%, 25%)
HSVhsv(81, 78%, 41%)
CMYKcmyk(27.6%, 0%, 78.1%, 58.8%)
CIE-LABlab(40.74, -23.74, 39.95)
CIE-LCHlch(40.74, 46.48, 120.72°)
OKLaboklab(48.11% -0.0682 0.089)
OKLCHoklch(48.11% 0.112 127.5)
XYZxyz(8.1867, 11.7013, 2.6377)
Luminance0.1170 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C6917 #341769
analogous
#695D17 #4C6917 #236917
triadic
#4C6917 #174C69 #69174C
tetradic
#4C6917 #17695D #341769 #691723
square
#4C6917 #17695D #341769 #691723
split-complementary
#4C6917 #172369 #5D1769
monochromatic
#121905 #28370C #4C6917 #709B22 #95CD2D

Accessibility & contrast

On white

6.29
#4C6917 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#4C6917 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C6917
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C6917#FFFFFF#000000##FFFFFF
##4C69171.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6F6106
Deuteranopia (green-blind)
#6B5F1F
Tritanopia (blue-blind)
#4F6459
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4c6917;
/* rgb */ color: rgb(76, 105, 23);
/* oklch */ color: oklch(48.1% 0.112 127.5);
Tailwind
colors: {
  custom: {
    50: '#81945b',
    500: '#4c6917',
    950: '#000000',
  },
}
SCSS
$custom: #4c6917;
$custom-light: #81945b;
$custom-dark: #000000;
JSON
{
  "hex": "#4c6917",
  "rgb": {
    "r": 76,
    "g": 105,
    "b": 23
  },
  "hsl": {
    "h": 81.22,
    "s": 64.063,
    "l": 25.098
  },
  "oklch": {
    "l": 0.48108,
    "c": 0.11212,
    "h": 127.5
  },
  "luminance": 0.11702
}

Semantic roles & 50–950 ramp

primary
#4C6917
secondary
#5F3D9F
accent
#41E77C
background
#F8F9F5
surface
#EFF1E9
border
#CACBC5
text
#0B0D04
muted
#7C7E79

Preview Lab

Preview with #4C6917

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

Preview Lab → · Contrast checker → · Palette generator →

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