#4C6818#4C6818

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

Color values

HEX#4C6818
RGBrgb(76, 104, 24)
HSLhsl(81, 63%, 25%)
HSVhsv(81, 77%, 41%)
CMYKcmyk(26.9%, 0%, 76.9%, 59.2%)
CIE-LABlab(40.41, -23.17, 39.25)
CIE-LCHlch(40.41, 45.58, 120.56°)
OKLaboklab(47.85% -0.0665 0.0877)
OKLCHoklch(47.85% 0.11 127.2)
XYZxyz(8.0957, 11.5029, 2.6577)
Luminance0.1150 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C6818 #341868
analogous
#685C18 #4C6818 #246818
triadic
#4C6818 #184C68 #68184C
tetradic
#4C6818 #18685C #341868 #681824
square
#4C6818 #18685C #341868 #681824
split-complementary
#4C6818 #182468 #5C1868
monochromatic
#121906 #28360D #4C6818 #709A23 #95CB2F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C6818#FFFFFF#000000##FFFFFF
##4C68181.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)
#6E6009
Deuteranopia (green-blind)
#6A5F1F
Tritanopia (blue-blind)
#4F6359
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4c6818;
/* rgb */ color: rgb(76, 104, 24);
/* oklch */ color: oklch(47.8% 0.110 127.2);
Tailwind
colors: {
  custom: {
    50: '#81935b',
    500: '#4c6818',
    950: '#000000',
  },
}
SCSS
$custom: #4c6818;
$custom-light: #81935b;
$custom-dark: #000000;
JSON
{
  "hex": "#4c6818",
  "rgb": {
    "r": 76,
    "g": 104,
    "b": 24
  },
  "hsl": {
    "h": 81,
    "s": 62.5,
    "l": 25.098
  },
  "oklch": {
    "l": 0.47848,
    "c": 0.11009,
    "h": 127.2
  },
  "luminance": 0.11503
}

Semantic roles & 50–950 ramp

primary
#4C6818
secondary
#5F3E9E
accent
#42E67B
background
#F8F9F5
surface
#EFF1E9
border
#CACBC5
text
#0B0D04
muted
#7C7E79

Preview Lab

Preview with #4C6818

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

Preview Lab → · Contrast checker → · Palette generator →

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