#4C6512#4C6512

#4C6512 is a mid, moderate yellow-green. Relative luminance 0.109; OKLCH L 47.0% C 0.110 H 125.6°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#4C6512
RGBrgb(76, 101, 18)
HSLhsl(78, 70%, 23%)
HSVhsv(78, 82%, 40%)
CMYKcmyk(24.8%, 0%, 82.2%, 60.4%)
CIE-LABlab(39.39, -22.00, 40.49)
CIE-LCHlch(39.39, 46.08, 118.51°)
OKLaboklab(47.01% -0.0638 0.0892)
OKLCHoklch(47.01% 0.11 125.6)
XYZxyz(7.7434, 10.8874, 2.2657)
Luminance0.1089 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C6512 #2B1265
analogous
#655412 #4C6512 #226512
triadic
#4C6512 #124C65 #65124C
tetradic
#4C6512 #126554 #2B1265 #651222
square
#4C6512 #126554 #2B1265 #651222
split-complementary
#4C6512 #122265 #541265
monochromatic
#141A05 #253109 #4C6512 #73991B #9ACD25

Accessibility & contrast

On white

6.61
#4C6512 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#4C6512 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C6512
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C6512#FFFFFF#000000##FFFFFF
##4C65121.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6B5E00
Deuteranopia (green-blind)
#685C1A
Tritanopia (blue-blind)
#506056
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4c6512;
/* rgb */ color: rgb(76, 101, 18);
/* oklch */ color: oklch(47.0% 0.110 125.6);
Tailwind
colors: {
  custom: {
    50: '#819158',
    500: '#4c6512',
    950: '#000000',
  },
}
SCSS
$custom: #4c6512;
$custom-light: #819158;
$custom-dark: #000000;
JSON
{
  "hex": "#4c6512",
  "rgb": {
    "r": 76,
    "g": 101,
    "b": 18
  },
  "hsl": {
    "h": 78.072,
    "s": 69.748,
    "l": 23.333
  },
  "oklch": {
    "l": 0.47005,
    "c": 0.10973,
    "h": 125.6
  },
  "luminance": 0.10888
}

Semantic roles & 50–950 ramp

primary
#4C6512
secondary
#55369D
accent
#3BED71
background
#F8F8F5
surface
#EFF0E9
border
#CACBC5
text
#0B0C04
muted
#7C7D79

Preview Lab

Preview with #4C6512

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

Preview Lab → · Contrast checker → · Palette generator →

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