#4C6212#4C6212

#4C6212 is a mid, moderate yellow-green. Relative luminance 0.103; OKLCH L 46.2% C 0.106 H 124.3°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#4C6212
RGBrgb(76, 98, 18)
HSLhsl(77, 69%, 23%)
HSVhsv(77, 82%, 38%)
CMYKcmyk(22.4%, 0%, 81.6%, 61.6%)
CIE-LABlab(38.40, -20.44, 39.57)
CIE-LCHlch(38.40, 44.54, 117.32°)
OKLaboklab(46.21% -0.0596 0.0873)
OKLCHoklch(46.21% 0.106 124.3)
XYZxyz(7.4574, 10.3155, 2.1703)
Luminance0.1032 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C6212 #281262
analogous
#625012 #4C6212 #246212
triadic
#4C6212 #124C62 #62124C
tetradic
#4C6212 #126250 #281262 #621224
square
#4C6212 #126250 #281262 #621224
split-complementary
#4C6212 #122462 #501262
monochromatic
#141A05 #242E09 #4C6212 #74961B #9CC925

Accessibility & contrast

On white

6.86
#4C6212 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#4C6212 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C6212
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C6212#FFFFFF#000000##FFFFFF
##4C62121.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#685B01
Deuteranopia (green-blind)
#655A1A
Tritanopia (blue-blind)
#505D53
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #4c6212;
/* rgb */ color: rgb(76, 98, 18);
/* oklch */ color: oklch(46.2% 0.106 124.3);
Tailwind
colors: {
  custom: {
    50: '#818e57',
    500: '#4c6212',
    950: '#000000',
  },
}
SCSS
$custom: #4c6212;
$custom-light: #818e57;
$custom-dark: #000000;
JSON
{
  "hex": "#4c6212",
  "rgb": {
    "r": 76,
    "g": 98,
    "b": 18
  },
  "hsl": {
    "h": 76.5,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.46205,
    "c": 0.10571,
    "h": 124.3
  },
  "luminance": 0.10316
}

Semantic roles & 50–950 ramp

primary
#4C6212
secondary
#51369A
accent
#3CEC6C
background
#F8F8F5
surface
#EFF0E9
border
#CACBC5
text
#0B0C03
muted
#7C7D78

Preview Lab

Preview with #4C6212

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

Preview Lab → · Contrast checker → · Palette generator →

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