#4C6012#4C6012

#4C6012 is a mid, moderate yellow-green. Relative luminance 0.099; OKLCH L 45.7% C 0.103 H 123.4°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#4C6012
RGBrgb(76, 96, 18)
HSLhsl(75, 68%, 22%)
HSVhsv(75, 81%, 38%)
CMYKcmyk(20.8%, 0%, 81.3%, 62.4%)
CIE-LABlab(37.75, -19.39, 38.95)
CIE-LCHlch(37.75, 43.51, 116.46°)
OKLaboklab(45.67% -0.0567 0.086)
OKLCHoklch(45.67% 0.103 123.4)
XYZxyz(7.2726, 9.9459, 2.1087)
Luminance0.0995 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C6012 #261260
analogous
#604D12 #4C6012 #256012
triadic
#4C6012 #124C60 #60124C
tetradic
#4C6012 #12604D #261260 #601225
square
#4C6012 #12604D #261260 #601225
split-complementary
#4C6012 #122560 #4D1260
monochromatic
#141A05 #232C08 #4C6012 #75941C #9EC725

Accessibility & contrast

On white

7.03
#4C6012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#4C6012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C6012
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C6012#FFFFFF#000000##FFFFFF
##4C60121.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#665901
Deuteranopia (green-blind)
#63591A
Tritanopia (blue-blind)
#505B51
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4c6012;
/* rgb */ color: rgb(76, 96, 18);
/* oklch */ color: oklch(45.7% 0.103 123.4);
Tailwind
colors: {
  custom: {
    50: '#818d57',
    500: '#4c6012',
    950: '#000000',
  },
}
SCSS
$custom: #4c6012;
$custom-light: #818d57;
$custom-dark: #000000;
JSON
{
  "hex": "#4c6012",
  "rgb": {
    "r": 76,
    "g": 96,
    "b": 18
  },
  "hsl": {
    "h": 75.385,
    "s": 68.421,
    "l": 22.353
  },
  "oklch": {
    "l": 0.45673,
    "c": 0.10303,
    "h": 123.4
  },
  "luminance": 0.09946
}

Semantic roles & 50–950 ramp

primary
#4C6012
secondary
#4F3698
accent
#3DEB69
background
#F8F8F5
surface
#EFF0E9
border
#CACBC5
text
#0B0C03
muted
#7C7D78

Preview Lab

Preview with #4C6012

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

Preview Lab → · Contrast checker → · Palette generator →

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