#3A5211#3A5211

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

Color values

HEX#3A5211
RGBrgb(58, 82, 17)
HSLhsl(82, 66%, 19%)
HSVhsv(82, 79%, 32%)
CMYKcmyk(29.3%, 0%, 79.3%, 67.8%)
CIE-LABlab(31.75, -20.19, 33.13)
CIE-LCHlch(31.75, 38.80, 121.35°)
OKLaboklab(40.48% -0.0578 0.0741)
OKLCHoklch(40.48% 0.094 128)
XYZxyz(4.8634, 6.9745, 1.6202)
Luminance0.0698 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5211 #291152
analogous
#524A11 #3A5211 #195211
triadic
#3A5211 #113A52 #52113A
tetradic
#3A5211 #11524A #291152 #521119
square
#3A5211 #11524A #291152 #521119
split-complementary
#3A5211 #111952 #4A1152
monochromatic
#121905 #161F06 #3A5211 #5E851C #82B726

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3A5211#FFFFFF#000000##FFFFFF
##3A52111.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)
#564C06
Deuteranopia (green-blind)
#534A17
Tritanopia (blue-blind)
#3C4E45
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3a5211;
/* rgb */ color: rgb(58, 82, 17);
/* oklch */ color: oklch(40.5% 0.094 128.0);
Tailwind
colors: {
  custom: {
    50: '#738254',
    500: '#3a5211',
    950: '#000000',
  },
}
SCSS
$custom: #3a5211;
$custom-light: #738254;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5211",
  "rgb": {
    "r": 58,
    "g": 82,
    "b": 17
  },
  "hsl": {
    "h": 82.154,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.40479,
    "c": 0.09398,
    "h": 128
  },
  "luminance": 0.06975
}

Semantic roles & 50–950 ramp

primary
#3A5211
secondary
#54348B
accent
#3FE97E
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#080A03
muted
#7B7C78

Preview Lab

Preview with #3A5211

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

Preview Lab → · Contrast checker → · Palette generator →

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