#3A5212#3A5212

#3A5212 is a dark, moderate yellow-green. Relative luminance 0.070; OKLCH L 40.5% C 0.093 H 128.1°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#3A5212
RGBrgb(58, 82, 18)
HSLhsl(83, 64%, 20%)
HSVhsv(83, 78%, 32%)
CMYKcmyk(29.3%, 0%, 78%, 67.8%)
CIE-LABlab(31.76, -20.12, 32.72)
CIE-LCHlch(31.76, 38.41, 121.58°)
OKLaboklab(40.49% -0.0575 0.0734)
OKLCHoklch(40.49% 0.093 128.1)
XYZxyz(4.8714, 6.9777, 1.6623)
Luminance0.0698 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5212 #2A1252
analogous
#524A12 #3A5212 #1A5212
triadic
#3A5212 #123A52 #52123A
tetradic
#3A5212 #12524A #2A1252 #52121A
square
#3A5212 #12524A #2A1252 #52121A
split-complementary
#3A5212 #121A52 #4A1252
monochromatic
#121906 #172007 #3A5212 #5D841D #81B628

Accessibility & contrast

On white

8.77
#3A5212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#3A5212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A5212
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5212#FFFFFF#000000##FFFFFF
##3A52121.008.772.408.77
#FFFFFF8.771.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564C07
Deuteranopia (green-blind)
#534A18
Tritanopia (blue-blind)
#3C4E45
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3a5212;
/* rgb */ color: rgb(58, 82, 18);
/* oklch */ color: oklch(40.5% 0.093 128.1);
Tailwind
colors: {
  custom: {
    50: '#738255',
    500: '#3a5212',
    950: '#000000',
  },
}
SCSS
$custom: #3a5212;
$custom-light: #738255;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5212",
  "rgb": {
    "r": 58,
    "g": 82,
    "b": 18
  },
  "hsl": {
    "h": 82.5,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.40487,
    "c": 0.09326,
    "h": 128.1
  },
  "luminance": 0.06978
}

Semantic roles & 50–950 ramp

primary
#3A5212
secondary
#55358B
accent
#41E77F
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#080A03
muted
#7B7C78

Preview Lab

Preview with #3A5212

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

Preview Lab → · Contrast checker → · Palette generator →

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