#3A6012#3A6012

#3A6012 is a dark, moderate yellow-green. Relative luminance 0.093; OKLCH L 44.4% C 0.113 H 132.6°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#3A6012
RGBrgb(58, 96, 18)
HSLhsl(89, 68%, 22%)
HSVhsv(89, 81%, 38%)
CMYKcmyk(39.6%, 0%, 81.3%, 62.4%)
CIE-LABlab(36.57, -27.11, 37.43)
CIE-LCHlch(36.57, 46.22, 125.92°)
OKLaboklab(44.41% -0.0765 0.0833)
OKLCHoklch(44.41% 0.113 132.6)
XYZxyz(6.0369, 9.3087, 2.0508)
Luminance0.0931 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A6012 #381260
analogous
#605F12 #3A6012 #136012
triadic
#3A6012 #123A60 #60123A
tetradic
#3A6012 #12605F #381260 #601213
square
#3A6012 #12605F #381260 #601213
split-complementary
#3A6012 #121360 #5F1260
monochromatic
#101A05 #1B2C08 #3A6012 #59941C #78C725

Accessibility & contrast

On white

7.34
#3A6012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#3A6012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A6012
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A6012#FFFFFF#000000##FFFFFF
##3A60121.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#645802
Deuteranopia (green-blind)
#5F551A
Tritanopia (blue-blind)
#3B5C51
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #3a6012;
/* rgb */ color: rgb(58, 96, 18);
/* oklch */ color: oklch(44.4% 0.113 132.6);
Tailwind
colors: {
  custom: {
    50: '#748d57',
    500: '#3a6012',
    950: '#000000',
  },
}
SCSS
$custom: #3a6012;
$custom-light: #748d57;
$custom-dark: #000000;
JSON
{
  "hex": "#3a6012",
  "rgb": {
    "r": 58,
    "g": 96,
    "b": 18
  },
  "hsl": {
    "h": 89.231,
    "s": 68.421,
    "l": 22.353
  },
  "oklch": {
    "l": 0.44411,
    "c": 0.11308,
    "h": 132.6
  },
  "luminance": 0.09309
}

Semantic roles & 50–950 ramp

primary
#3A6012
secondary
#663698
accent
#3DEB92
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#080C03
muted
#7B7D78

Preview Lab

Preview with #3A6012

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

Preview Lab → · Contrast checker → · Palette generator →

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