#3A4F12#3A4F12

#3A4F12 is a dark, moderate yellow-green. Relative luminance 0.065; OKLCH L 39.6% C 0.089 H 126.7°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#3A4F12
RGBrgb(58, 79, 18)
HSLhsl(81, 63%, 19%)
HSVhsv(81, 77%, 31%)
CMYKcmyk(26.6%, 0%, 77.2%, 69%)
CIE-LABlab(30.72, -18.53, 31.69)
CIE-LCHlch(30.72, 36.71, 120.31°)
OKLaboklab(39.65% -0.0532 0.0712)
OKLCHoklch(39.65% 0.089 126.7)
XYZxyz(4.6501, 6.5351, 1.5886)
Luminance0.0654 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A4F12 #27124F
analogous
#4F4612 #3A4F12 #1C4F12
triadic
#3A4F12 #123A4F #4F123A
tetradic
#3A4F12 #124F46 #27124F #4F121C
square
#3A4F12 #124F46 #27124F #4F121C
split-complementary
#3A4F12 #121C4F #46124F
monochromatic
#121906 #151D07 #3A4F12 #5F811D #83B329

Accessibility & contrast

On white

9.10
#3A4F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#3A4F12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A4F12
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A4F12#FFFFFF#000000##FFFFFF
##3A4F121.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534908
Deuteranopia (green-blind)
#514817
Tritanopia (blue-blind)
#3D4B43
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #3a4f12;
/* rgb */ color: rgb(58, 79, 18);
/* oklch */ color: oklch(39.6% 0.089 126.7);
Tailwind
colors: {
  custom: {
    50: '#728054',
    500: '#3a4f12',
    950: '#000000',
  },
}
SCSS
$custom: #3a4f12;
$custom-light: #728054;
$custom-dark: #000000;
JSON
{
  "hex": "#3a4f12",
  "rgb": {
    "r": 58,
    "g": 79,
    "b": 18
  },
  "hsl": {
    "h": 80.656,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.3965,
    "c": 0.0889,
    "h": 126.7
  },
  "luminance": 0.06535
}

Semantic roles & 50–950 ramp

primary
#3A4F12
secondary
#513588
accent
#42E67A
background
#F7F7F5
surface
#EDEEE9
border
#C8C9C5
text
#080A03
muted
#7B7C78

Preview Lab

Preview with #3A4F12

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

Preview Lab → · Contrast checker → · Palette generator →

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