#3A5012#3A5012

#3A5012 is a dark, moderate yellow-green. Relative luminance 0.067; OKLCH L 39.9% C 0.090 H 127.2°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#3A5012
RGBrgb(58, 80, 18)
HSLhsl(81, 63%, 19%)
HSVhsv(81, 78%, 31%)
CMYKcmyk(27.5%, 0%, 77.5%, 68.6%)
CIE-LABlab(31.07, -19.06, 32.03)
CIE-LCHlch(31.07, 37.28, 120.75°)
OKLaboklab(39.93% -0.0546 0.072)
OKLCHoklch(39.93% 0.09 127.2)
XYZxyz(4.7228, 6.6804, 1.6128)
Luminance0.0668 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5012 #281250
analogous
#504712 #3A5012 #1B5012
triadic
#3A5012 #123A50 #50123A
tetradic
#3A5012 #125047 #281250 #50121B
square
#3A5012 #125047 #281250 #50121B
split-complementary
#3A5012 #121B50 #471250
monochromatic
#121906 #161E07 #3A5012 #5E821D #82B428

Accessibility & contrast

On white

8.99
#3A5012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A5012
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5012#FFFFFF#000000##FFFFFF
##3A50121.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A08
Deuteranopia (green-blind)
#514917
Tritanopia (blue-blind)
#3C4C44
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3a5012;
/* rgb */ color: rgb(58, 80, 18);
/* oklch */ color: oklch(39.9% 0.090 127.2);
Tailwind
colors: {
  custom: {
    50: '#738154',
    500: '#3a5012',
    950: '#000000',
  },
}
SCSS
$custom: #3a5012;
$custom-light: #738154;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5012",
  "rgb": {
    "r": 58,
    "g": 80,
    "b": 18
  },
  "hsl": {
    "h": 81.29,
    "s": 63.265,
    "l": 19.216
  },
  "oklch": {
    "l": 0.39929,
    "c": 0.09036,
    "h": 127.2
  },
  "luminance": 0.06681
}

Semantic roles & 50–950 ramp

primary
#3A5012
secondary
#533589
accent
#41E67C
background
#F7F7F5
surface
#EDEEE9
border
#C8C9C5
text
#080A03
muted
#7B7C78

Preview Lab

Preview with #3A5012

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

Preview Lab → · Contrast checker → · Palette generator →

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