#4A6012#4A6012

#4A6012 is a mid, moderate yellow-green. Relative luminance 0.099; OKLCH L 45.5% C 0.104 H 124.6°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#4A6012
RGBrgb(74, 96, 18)
HSLhsl(77, 68%, 22%)
HSVhsv(77, 81%, 38%)
CMYKcmyk(22.9%, 0%, 81.3%, 62.4%)
CIE-LABlab(37.60, -20.30, 38.77)
CIE-LCHlch(37.60, 43.76, 117.63°)
OKLaboklab(45.52% -0.0591 0.0857)
OKLCHoklch(45.52% 0.104 124.6)
XYZxyz(7.1162, 9.8652, 2.1014)
Luminance0.0987 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A6012 #281260
analogous
#604F12 #4A6012 #236012
triadic
#4A6012 #124A60 #60124A
tetradic
#4A6012 #12604F #281260 #601223
square
#4A6012 #12604F #281260 #601223
split-complementary
#4A6012 #122360 #4F1260
monochromatic
#141A05 #222C08 #4A6012 #72941C #99C725

Accessibility & contrast

On white

7.06
#4A6012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#4A6012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A6012
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A6012#FFFFFF#000000##FFFFFF
##4A60121.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#665902
Deuteranopia (green-blind)
#63581A
Tritanopia (blue-blind)
#4E5B51
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4a6012;
/* rgb */ color: rgb(74, 96, 18);
/* oklch */ color: oklch(45.5% 0.104 124.6);
Tailwind
colors: {
  custom: {
    50: '#7f8d57',
    500: '#4a6012',
    950: '#000000',
  },
}
SCSS
$custom: #4a6012;
$custom-light: #7f8d57;
$custom-dark: #000000;
JSON
{
  "hex": "#4a6012",
  "rgb": {
    "r": 74,
    "g": 96,
    "b": 18
  },
  "hsl": {
    "h": 76.923,
    "s": 68.421,
    "l": 22.353
  },
  "oklch": {
    "l": 0.45517,
    "c": 0.10407,
    "h": 124.6
  },
  "luminance": 0.09865
}

Semantic roles & 50–950 ramp

primary
#4A6012
secondary
#513698
accent
#3DEB6E
background
#F8F8F5
surface
#EFF0E9
border
#CACBC5
text
#0A0C03
muted
#7C7D78

Preview Lab

Preview with #4A6012

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

Preview Lab → · Contrast checker → · Palette generator →

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