#3A4E12#3A4E12

#3A4E12 is a dark, moderate yellow-green. Relative luminance 0.064; OKLCH L 39.4% C 0.087 H 126.2°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#3A4E12
RGBrgb(58, 78, 18)
HSLhsl(80, 63%, 19%)
HSVhsv(80, 77%, 31%)
CMYKcmyk(25.6%, 0%, 76.9%, 69.4%)
CIE-LABlab(30.38, -17.99, 31.34)
CIE-LCHlch(30.38, 36.14, 119.85°)
OKLaboklab(39.37% -0.0517 0.0705)
OKLCHoklch(39.37% 0.087 126.2)
XYZxyz(4.5785, 6.3919, 1.5647)
Luminance0.0639 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A4E12 #26124E
analogous
#4E4412 #3A4E12 #1C4E12
triadic
#3A4E12 #123A4E #4E123A
tetradic
#3A4E12 #124E44 #26124E #4E121C
square
#3A4E12 #124E44 #26124E #4E121C
split-complementary
#3A4E12 #121C4E #44124E
monochromatic
#121906 #151C07 #3A4E12 #5F801D #84B129

Accessibility & contrast

On white

9.22
#3A4E12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#3A4E12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A4E12
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A4E12#FFFFFF#000000##FFFFFF
##3A4E121.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524808
Deuteranopia (green-blind)
#504717
Tritanopia (blue-blind)
#3D4A42
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #3a4e12;
/* rgb */ color: rgb(58, 78, 18);
/* oklch */ color: oklch(39.4% 0.087 126.2);
Tailwind
colors: {
  custom: {
    50: '#727f54',
    500: '#3a4e12',
    950: '#000000',
  },
}
SCSS
$custom: #3a4e12;
$custom-light: #727f54;
$custom-dark: #000000;
JSON
{
  "hex": "#3a4e12",
  "rgb": {
    "r": 58,
    "g": 78,
    "b": 18
  },
  "hsl": {
    "h": 80,
    "s": 62.5,
    "l": 18.824
  },
  "oklch": {
    "l": 0.39372,
    "c": 0.08744,
    "h": 126.2
  },
  "luminance": 0.06392
}

Semantic roles & 50–950 ramp

primary
#3A4E12
secondary
#503587
accent
#42E679
background
#F7F7F5
surface
#EDEEE8
border
#C8C9C4
text
#080A03
muted
#7B7C78

Preview Lab

Preview with #3A4E12

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

Preview Lab → · Contrast checker → · Palette generator →

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