#3A7612#3A7612

#3A7612 is a mid, vivid yellow-green. Relative luminance 0.139; OKLCH L 50.6% C 0.142 H 136.4°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#3A7612
RGBrgb(58, 118, 18)
HSLhsl(96, 74%, 27%)
HSVhsv(96, 85%, 46%)
CMYKcmyk(50.8%, 0%, 84.7%, 53.7%)
CIE-LABlab(44.09, -36.89, 44.46)
CIE-LCHlch(44.09, 57.77, 129.68°)
OKLaboklab(50.58% -0.1028 0.098)
OKLCHoklch(50.58% 0.142 136.4)
XYZxyz(8.3323, 13.8995, 2.8160)
Luminance0.1390 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A7612 #4E1276
analogous
#6C7612 #3A7612 #12761C
triadic
#3A7612 #123A76 #76123A
tetradic
#3A7612 #126C76 #4E1276 #761C12
square
#3A7612 #126C76 #4E1276 #761C12
split-complementary
#3A7612 #1C1276 #76126C
monochromatic
#0D1B04 #20410A #3A7612 #54AB1A #6FDE25

Accessibility & contrast

On white

5.56
#3A7612 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#3A7612 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A7612
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A7612#FFFFFF#000000##FFFFFF
##3A76121.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B00
Deuteranopia (green-blind)
#73661E
Tritanopia (blue-blind)
#377164
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #3a7612;
/* rgb */ color: rgb(58, 118, 18);
/* oklch */ color: oklch(50.6% 0.142 136.4);
Tailwind
colors: {
  custom: {
    50: '#779e5a',
    500: '#3a7612',
    950: '#000000',
  },
}
SCSS
$custom: #3a7612;
$custom-light: #779e5a;
$custom-dark: #000000;
JSON
{
  "hex": "#3a7612",
  "rgb": {
    "r": 58,
    "g": 118,
    "b": 18
  },
  "hsl": {
    "h": 96,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.50577,
    "c": 0.14204,
    "h": 136.4
  },
  "luminance": 0.139
}

Semantic roles & 50–950 ramp

primary
#3A7612
secondary
#7E37AD
accent
#38F0A6
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090E04
muted
#7B7E79

Preview Lab

Preview with #3A7612

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

Preview Lab → · Contrast checker → · Palette generator →

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