#3A5F12#3A5F12

#3A5F12 is a dark, moderate yellow-green. Relative luminance 0.091; OKLCH L 44.1% C 0.112 H 132.3°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#3A5F12
RGBrgb(58, 95, 18)
HSLhsl(89, 68%, 22%)
HSVhsv(89, 81%, 37%)
CMYKcmyk(38.9%, 0%, 81.1%, 62.7%)
CIE-LABlab(36.23, -26.63, 37.10)
CIE-LCHlch(36.23, 45.67, 125.67°)
OKLaboklab(44.13% -0.0752 0.0826)
OKLCHoklch(44.13% 0.112 132.3)
XYZxyz(5.9462, 9.1274, 2.0206)
Luminance0.0913 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5F12 #37125F
analogous
#5F5E12 #3A5F12 #145F12
triadic
#3A5F12 #123A5F #5F123A
tetradic
#3A5F12 #125F5E #37125F #5F1214
square
#3A5F12 #125F5E #37125F #5F1214
split-complementary
#3A5F12 #12145F #5E125F
monochromatic
#101A05 #1B2C08 #3A5F12 #59921C #79C625

Accessibility & contrast

On white

7.43
#3A5F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#3A5F12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A5F12
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5F12#FFFFFF#000000##FFFFFF
##3A5F121.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#635702
Deuteranopia (green-blind)
#5E541A
Tritanopia (blue-blind)
#3B5B50
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #3a5f12;
/* rgb */ color: rgb(58, 95, 18);
/* oklch */ color: oklch(44.1% 0.112 132.3);
Tailwind
colors: {
  custom: {
    50: '#748c57',
    500: '#3a5f12',
    950: '#000000',
  },
}
SCSS
$custom: #3a5f12;
$custom-light: #748c57;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5f12",
  "rgb": {
    "r": 58,
    "g": 95,
    "b": 18
  },
  "hsl": {
    "h": 88.831,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.44131,
    "c": 0.1117,
    "h": 132.3
  },
  "luminance": 0.09128
}

Semantic roles & 50–950 ramp

primary
#3A5F12
secondary
#643697
accent
#3DEB91
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#080C03
muted
#7B7D78

Preview Lab

Preview with #3A5F12

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

Preview Lab → · Contrast checker → · Palette generator →

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