#3A5016#3A5016

#3A5016 is a dark, moderate yellow-green. Relative luminance 0.067; OKLCH L 40.0% C 0.087 H 127.8°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#3A5016
RGBrgb(58, 80, 22)
HSLhsl(83, 57%, 20%)
HSVhsv(83, 73%, 31%)
CMYKcmyk(27.5%, 0%, 72.5%, 68.6%)
CIE-LABlab(31.10, -18.74, 30.26)
CIE-LCHlch(31.10, 35.59, 121.78°)
OKLaboklab(39.97% -0.0534 0.0689)
OKLCHoklch(39.97% 0.087 127.8)
XYZxyz(4.7584, 6.6947, 1.8004)
Luminance0.0669 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5016 #2C1650
analogous
#504916 #3A5016 #1D5016
triadic
#3A5016 #163A50 #50163A
tetradic
#3A5016 #165049 #2C1650 #50161D
square
#3A5016 #165049 #2C1650 #50161D
split-complementary
#3A5016 #161D50 #491650
monochromatic
#111807 #172009 #3A5016 #5D8023 #80B030

Accessibility & contrast

On white

8.98
#3A5016 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#3A5016 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A5016
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5016#FFFFFF#000000##FFFFFF
##3A50161.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A0E
Deuteranopia (green-blind)
#51491B
Tritanopia (blue-blind)
#3C4C44
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3a5016;
/* rgb */ color: rgb(58, 80, 22);
/* oklch */ color: oklch(40.0% 0.087 127.8);
Tailwind
colors: {
  custom: {
    50: '#728157',
    500: '#3a5016',
    950: '#000000',
  },
}
SCSS
$custom: #3a5016;
$custom-light: #728157;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5016",
  "rgb": {
    "r": 58,
    "g": 80,
    "b": 22
  },
  "hsl": {
    "h": 82.759,
    "s": 56.863,
    "l": 20
  },
  "oklch": {
    "l": 0.39967,
    "c": 0.08715,
    "h": 127.8
  },
  "luminance": 0.06695
}

Semantic roles & 50–950 ramp

primary
#3A5016
secondary
#583A87
accent
#48E082
background
#F7F7F5
surface
#EDEEE9
border
#C8C9C5
text
#080A03
muted
#7B7C78

Preview Lab

Preview with #3A5016

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

Preview Lab → · Contrast checker → · Palette generator →

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