#3A5216#3A5216

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

Color values

HEX#3A5216
RGBrgb(58, 82, 22)
HSLhsl(84, 58%, 20%)
HSVhsv(84, 73%, 32%)
CMYKcmyk(29.3%, 0%, 73.2%, 67.8%)
CIE-LABlab(31.79, -19.81, 30.98)
CIE-LCHlch(31.79, 36.77, 122.59°)
OKLaboklab(40.52% -0.0563 0.0704)
OKLCHoklch(40.52% 0.09 128.6)
XYZxyz(4.9070, 6.9919, 1.8499)
Luminance0.0699 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5216 #2E1652
analogous
#524C16 #3A5216 #1C5216
triadic
#3A5216 #163A52 #52163A
tetradic
#3A5216 #16524C #2E1652 #52161C
square
#3A5216 #16524C #2E1652 #52161C
split-complementary
#3A5216 #161C52 #4C1652
monochromatic
#111806 #182209 #3A5216 #5C8223 #7EB330

Accessibility & contrast

On white

8.76
#3A5216 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A5216
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5216#FFFFFF#000000##FFFFFF
##3A52161.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564C0E
Deuteranopia (green-blind)
#534A1B
Tritanopia (blue-blind)
#3C4E46
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3a5216;
/* rgb */ color: rgb(58, 82, 22);
/* oklch */ color: oklch(40.5% 0.090 128.6);
Tailwind
colors: {
  custom: {
    50: '#728257',
    500: '#3a5216',
    950: '#000000',
  },
}
SCSS
$custom: #3a5216;
$custom-light: #728257;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5216",
  "rgb": {
    "r": 58,
    "g": 82,
    "b": 22
  },
  "hsl": {
    "h": 84,
    "s": 57.692,
    "l": 20.392
  },
  "oklch": {
    "l": 0.40524,
    "c": 0.09015,
    "h": 128.6
  },
  "luminance": 0.06992
}

Semantic roles & 50–950 ramp

primary
#3A5216
secondary
#5A3A89
accent
#47E184
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#080A03
muted
#7B7C78

Preview Lab

Preview with #3A5216

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

Preview Lab → · Contrast checker → · Palette generator →

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