#3A5116#3A5116

#3A5116 is a dark, moderate yellow-green. Relative luminance 0.068; OKLCH L 40.2% C 0.089 H 128.2°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#3A5116
RGBrgb(58, 81, 22)
HSLhsl(83, 57%, 20%)
HSVhsv(83, 73%, 32%)
CMYKcmyk(28.4%, 0%, 72.8%, 68.2%)
CIE-LABlab(31.44, -19.28, 30.62)
CIE-LCHlch(31.44, 36.18, 122.19°)
OKLaboklab(40.24% -0.0548 0.0697)
OKLCHoklch(40.24% 0.089 128.2)
XYZxyz(4.8322, 6.8422, 1.8250)
Luminance0.0684 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5116 #2D1651
analogous
#514B16 #3A5116 #1C5116
triadic
#3A5116 #163A51 #51163A
tetradic
#3A5116 #16514B #2D1651 #51161C
square
#3A5116 #16514B #2D1651 #51161C
split-complementary
#3A5116 #161C51 #4B1651
monochromatic
#111807 #182109 #3A5116 #5C8123 #7FB130

Accessibility & contrast

On white

8.87
#3A5116 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#3A5116 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A5116
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5116#FFFFFF#000000##FFFFFF
##3A51161.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B0E
Deuteranopia (green-blind)
#524A1B
Tritanopia (blue-blind)
#3C4D45
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #3a5116;
/* rgb */ color: rgb(58, 81, 22);
/* oklch */ color: oklch(40.2% 0.089 128.2);
Tailwind
colors: {
  custom: {
    50: '#728257',
    500: '#3a5116',
    950: '#000000',
  },
}
SCSS
$custom: #3a5116;
$custom-light: #728257;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5116",
  "rgb": {
    "r": 58,
    "g": 81,
    "b": 22
  },
  "hsl": {
    "h": 83.39,
    "s": 57.282,
    "l": 20.196
  },
  "oklch": {
    "l": 0.40245,
    "c": 0.08866,
    "h": 128.2
  },
  "luminance": 0.06842
}

Semantic roles & 50–950 ramp

primary
#3A5116
secondary
#593A88
accent
#47E183
background
#F7F7F5
surface
#EDEEE9
border
#C8C9C5
text
#080A03
muted
#7B7C78

Preview Lab

Preview with #3A5116

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

Preview Lab → · Contrast checker → · Palette generator →

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