#3A6212#3A6212

#3A6212 is a dark, moderate yellow-green. Relative luminance 0.097; OKLCH L 45.0% C 0.116 H 133.0°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#3A6212
RGBrgb(58, 98, 18)
HSLhsl(90, 69%, 23%)
HSVhsv(90, 82%, 38%)
CMYKcmyk(40.8%, 0%, 81.6%, 61.6%)
CIE-LABlab(37.26, -28.05, 38.08)
CIE-LCHlch(37.26, 47.30, 126.38°)
OKLaboklab(44.97% -0.0791 0.0847)
OKLCHoklch(44.97% 0.116 133)
XYZxyz(6.2217, 9.6783, 2.1124)
Luminance0.0968 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A6212 #3A1262
analogous
#626212 #3A6212 #126212
triadic
#3A6212 #123A62 #62123A
tetradic
#3A6212 #126262 #3A1262 #621212
square
#3A6212 #126262 #3A1262 #621212
split-complementary
#3A6212 #121262 #621262
monochromatic
#0F1A05 #1B2E09 #3A6212 #59961B #77C925

Accessibility & contrast

On white

7.15
#3A6212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#3A6212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A6212
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A6212#FFFFFF#000000##FFFFFF
##3A62121.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#665A01
Deuteranopia (green-blind)
#61571A
Tritanopia (blue-blind)
#3A5E53
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #3a6212;
/* rgb */ color: rgb(58, 98, 18);
/* oklch */ color: oklch(45.0% 0.116 133.0);
Tailwind
colors: {
  custom: {
    50: '#748f57',
    500: '#3a6212',
    950: '#000000',
  },
}
SCSS
$custom: #3a6212;
$custom-light: #748f57;
$custom-dark: #000000;
JSON
{
  "hex": "#3a6212",
  "rgb": {
    "r": 58,
    "g": 98,
    "b": 18
  },
  "hsl": {
    "h": 90,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.44973,
    "c": 0.11583,
    "h": 133
  },
  "luminance": 0.09679
}

Semantic roles & 50–950 ramp

primary
#3A6212
secondary
#68369A
accent
#3CEC94
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090C03
muted
#7B7D78

Preview Lab

Preview with #3A6212

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

Preview Lab → · Contrast checker → · Palette generator →

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