#3A6812#3A6812

#3A6812 is a mid, vivid yellow-green. Relative luminance 0.108; OKLCH L 46.7% C 0.124 H 134.3°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#3A6812
RGBrgb(58, 104, 18)
HSLhsl(92, 70%, 24%)
HSVhsv(92, 83%, 41%)
CMYKcmyk(44.2%, 0%, 82.7%, 59.2%)
CIE-LABlab(39.32, -30.82, 40.03)
CIE-LCHlch(39.32, 50.52, 127.59°)
OKLaboklab(46.66% -0.0865 0.0887)
OKLCHoklch(46.66% 0.124 134.3)
XYZxyz(6.8043, 10.8435, 2.3066)
Luminance0.1084 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A6812 #401268
analogous
#656812 #3A6812 #126815
triadic
#3A6812 #123A68 #68123A
tetradic
#3A6812 #126568 #401268 #681512
square
#3A6812 #126568 #401268 #681512
split-complementary
#3A6812 #151268 #681265
monochromatic
#0F1A05 #1D3409 #3A6812 #579C1B #74D024

Accessibility & contrast

On white

6.63
#3A6812 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#3A6812 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A6812
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A6812#FFFFFF#000000##FFFFFF
##3A68121.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6C5F00
Deuteranopia (green-blind)
#665B1C
Tritanopia (blue-blind)
#396458
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #3a6812;
/* rgb */ color: rgb(58, 104, 18);
/* oklch */ color: oklch(46.7% 0.124 134.3);
Tailwind
colors: {
  custom: {
    50: '#759358',
    500: '#3a6812',
    950: '#000000',
  },
}
SCSS
$custom: #3a6812;
$custom-light: #759358;
$custom-dark: #000000;
JSON
{
  "hex": "#3a6812",
  "rgb": {
    "r": 58,
    "g": 104,
    "b": 18
  },
  "hsl": {
    "h": 92.093,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.46657,
    "c": 0.12392,
    "h": 134.3
  },
  "luminance": 0.10844
}

Semantic roles & 50–950 ramp

primary
#3A6812
secondary
#6F36A0
accent
#3BED9A
background
#F7F9F5
surface
#EDF1E9
border
#C8CBC5
text
#090D04
muted
#7B7E79

Preview Lab

Preview with #3A6812

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

Preview Lab → · Contrast checker → · Palette generator →

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