#4C6817#4C6817

#4C6817 is a mid, moderate yellow-green. Relative luminance 0.115; OKLCH L 47.8% C 0.111 H 127.1°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#4C6817
RGBrgb(76, 104, 23)
HSLhsl(81, 64%, 25%)
HSVhsv(81, 78%, 41%)
CMYKcmyk(26.9%, 0%, 77.9%, 59.2%)
CIE-LABlab(40.41, -23.24, 39.63)
CIE-LCHlch(40.41, 45.94, 120.38°)
OKLaboklab(47.84% -0.0668 0.0883)
OKLCHoklch(47.84% 0.111 127.1)
XYZxyz(8.0855, 11.4988, 2.6040)
Luminance0.1150 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C6817 #331768
analogous
#685C17 #4C6817 #236817
triadic
#4C6817 #174C68 #68174C
tetradic
#4C6817 #17685C #331768 #681723
square
#4C6817 #17685C #331768 #681723
split-complementary
#4C6817 #172368 #5C1768
monochromatic
#121906 #27360C #4C6817 #719A22 #95CC2D

Accessibility & contrast

On white

6.36
#4C6817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#4C6817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C6817
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C6817#FFFFFF#000000##FFFFFF
##4C68171.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6007
Deuteranopia (green-blind)
#6A5F1F
Tritanopia (blue-blind)
#4F6358
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4c6817;
/* rgb */ color: rgb(76, 104, 23);
/* oklch */ color: oklch(47.8% 0.111 127.1);
Tailwind
colors: {
  custom: {
    50: '#81935b',
    500: '#4c6817',
    950: '#000000',
  },
}
SCSS
$custom: #4c6817;
$custom-light: #81935b;
$custom-dark: #000000;
JSON
{
  "hex": "#4c6817",
  "rgb": {
    "r": 76,
    "g": 104,
    "b": 23
  },
  "hsl": {
    "h": 80.741,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.4784,
    "c": 0.11075,
    "h": 127.1
  },
  "luminance": 0.11499
}

Semantic roles & 50–950 ramp

primary
#4C6817
secondary
#5E3D9E
accent
#41E77A
background
#F8F9F5
surface
#EFF1E9
border
#CACBC5
text
#0B0D04
muted
#7C7E79

Preview Lab

Preview with #4C6817

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

Preview Lab → · Contrast checker → · Palette generator →

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