#3A7512#3A7512

#3A7512 is a mid, vivid yellow-green. Relative luminance 0.137; OKLCH L 50.3% C 0.141 H 136.2°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#3A7512
RGBrgb(58, 117, 18)
HSLhsl(96, 73%, 26%)
HSVhsv(96, 85%, 46%)
CMYKcmyk(50.4%, 0%, 84.6%, 54.1%)
CIE-LABlab(43.75, -36.47, 44.15)
CIE-LCHlch(43.75, 57.26, 129.56°)
OKLaboklab(50.3% -0.1017 0.0974)
OKLCHoklch(50.3% 0.141 136.2)
XYZxyz(8.2152, 13.6652, 2.7769)
Luminance0.1367 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A7512 #4D1275
analogous
#6C7512 #3A7512 #12751C
triadic
#3A7512 #123A75 #75123A
tetradic
#3A7512 #126C75 #4D1275 #751C12
square
#3A7512 #126C75 #4D1275 #751C12
split-complementary
#3A7512 #1C1275 #75126C
monochromatic
#0D1B04 #20400A #3A7512 #54AA1A #6FDD24

Accessibility & contrast

On white

5.63
#3A7512 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#3A7512 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A7512
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A7512#FFFFFF#000000##FFFFFF
##3A75121.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A00
Deuteranopia (green-blind)
#72661E
Tritanopia (blue-blind)
#377063
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #3a7512;
/* rgb */ color: rgb(58, 117, 18);
/* oklch */ color: oklch(50.3% 0.141 136.2);
Tailwind
colors: {
  custom: {
    50: '#779d5a',
    500: '#3a7512',
    950: '#000000',
  },
}
SCSS
$custom: #3a7512;
$custom-light: #779d5a;
$custom-dark: #000000;
JSON
{
  "hex": "#3a7512",
  "rgb": {
    "r": 58,
    "g": 117,
    "b": 18
  },
  "hsl": {
    "h": 95.758,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.50298,
    "c": 0.14078,
    "h": 136.2
  },
  "luminance": 0.13666
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A7512

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

Preview Lab → · Contrast checker → · Palette generator →

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