#3A511F#3A511F

#3A511F is a dark, moderate yellow-green. Relative luminance 0.069; OKLCH L 40.4% C 0.080 H 130.0°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#3A511F
RGBrgb(58, 81, 31)
HSLhsl(88, 45%, 22%)
HSVhsv(88, 62%, 32%)
CMYKcmyk(28.4%, 0%, 61.7%, 68.2%)
CIE-LABlab(31.54, -18.38, 26.16)
CIE-LCHlch(31.54, 31.98, 125.09°)
OKLaboklab(40.35% -0.0515 0.0614)
OKLCHoklch(40.35% 0.08 130)
XYZxyz(4.9346, 6.8832, 2.3647)
Luminance0.0688 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A511F #361F51
analogous
#514F1F #3A511F #21511F
triadic
#3A511F #1F3A51 #511F3A
tetradic
#3A511F #1F514F #361F51 #511F21
square
#3A511F #1F514F #361F51 #511F21
split-complementary
#3A511F #1F2151 #4F1F51
monochromatic
#101608 #1A250E #3A511F #5A7D30 #79AA41

Accessibility & contrast

On white

8.84
#3A511F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#3A511F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A511F
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A511F#FFFFFF#000000##FFFFFF
##3A511F1.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B1A
Deuteranopia (green-blind)
#514A22
Tritanopia (blue-blind)
#3B4E46
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #3a511f;
/* rgb */ color: rgb(58, 81, 31);
/* oklch */ color: oklch(40.4% 0.080 130.0);
Tailwind
colors: {
  custom: {
    50: '#72825c',
    500: '#3a511f',
    950: '#000000',
  },
}
SCSS
$custom: #3a511f;
$custom-light: #72825c;
$custom-dark: #000000;
JSON
{
  "hex": "#3a511f",
  "rgb": {
    "r": 58,
    "g": 81,
    "b": 31
  },
  "hsl": {
    "h": 87.6,
    "s": 44.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.40352,
    "c": 0.08013,
    "h": 130
  },
  "luminance": 0.06883
}

Semantic roles & 50–950 ramp

primary
#3A511F
secondary
#634686
accent
#53D48F
background
#F7F7F5
surface
#EDEEE9
border
#C8C9C5
text
#080A04
muted
#7B7C79

Preview Lab

Preview with #3A511F

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

Preview Lab → · Contrast checker → · Palette generator →

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