#3A5912#3A5912

#3A5912 is a dark, moderate yellow-green. Relative luminance 0.081; OKLCH L 42.4% C 0.103 H 130.6°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#3A5912
RGBrgb(58, 89, 18)
HSLhsl(86, 66%, 21%)
HSVhsv(86, 80%, 35%)
CMYKcmyk(34.8%, 0%, 79.8%, 65.1%)
CIE-LABlab(34.17, -23.70, 35.10)
CIE-LCHlch(34.17, 42.35, 124.03°)
OKLaboklab(42.45% -0.0673 0.0784)
OKLCHoklch(42.45% 0.103 130.6)
XYZxyz(5.4264, 8.0878, 1.8473)
Luminance0.0809 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5912 #311259
analogous
#595412 #3A5912 #165912
triadic
#3A5912 #123A59 #59123A
tetradic
#3A5912 #125954 #311259 #591216
square
#3A5912 #125954 #311259 #591216
split-complementary
#3A5912 #121659 #541259
monochromatic
#111905 #192608 #3A5912 #5B8C1C #7CBF27

Accessibility & contrast

On white

8.02
#3A5912 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#3A5912 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A5912
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5912#FFFFFF#000000##FFFFFF
##3A59121.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D5205
Deuteranopia (green-blind)
#595019
Tritanopia (blue-blind)
#3B554B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3a5912;
/* rgb */ color: rgb(58, 89, 18);
/* oklch */ color: oklch(42.4% 0.103 130.6);
Tailwind
colors: {
  custom: {
    50: '#738856',
    500: '#3a5912',
    950: '#000000',
  },
}
SCSS
$custom: #3a5912;
$custom-light: #738856;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5912",
  "rgb": {
    "r": 58,
    "g": 89,
    "b": 18
  },
  "hsl": {
    "h": 86.197,
    "s": 66.355,
    "l": 20.98
  },
  "oklch": {
    "l": 0.42447,
    "c": 0.1033,
    "h": 130.6
  },
  "luminance": 0.08088
}

Semantic roles & 50–950 ramp

primary
#3A5912
secondary
#5E3592
accent
#3FE989
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#080B03
muted
#7B7C78

Preview Lab

Preview with #3A5912

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

Preview Lab → · Contrast checker → · Palette generator →

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