#3A7412#3A7412

#3A7412 is a mid, vivid yellow-green. Relative luminance 0.134; OKLCH L 50.0% C 0.140 H 136.1°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#3A7412
RGBrgb(58, 116, 18)
HSLhsl(96, 73%, 26%)
HSVhsv(96, 84%, 45%)
CMYKcmyk(50%, 0%, 84.5%, 54.5%)
CIE-LABlab(43.41, -36.05, 43.83)
CIE-LCHlch(43.41, 56.75, 129.43°)
OKLaboklab(50.02% -0.1006 0.0967)
OKLCHoklch(50.02% 0.14 136.1)
XYZxyz(8.0993, 13.4335, 2.7383)
Luminance0.1343 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A7412 #4C1274
analogous
#6B7412 #3A7412 #12741B
triadic
#3A7412 #123A74 #74123A
tetradic
#3A7412 #126B74 #4C1274 #741B12
square
#3A7412 #126B74 #4C1274 #741B12
split-complementary
#3A7412 #1B1274 #74126B
monochromatic
#0D1A04 #203F0A #3A7412 #54A91A #6FDD23

Accessibility & contrast

On white

5.70
#3A7412 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#3A7412 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A7412
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A7412#FFFFFF#000000##FFFFFF
##3A74121.005.703.695.70
#FFFFFF5.701.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786A00
Deuteranopia (green-blind)
#71651E
Tritanopia (blue-blind)
#376F62
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #3a7412;
/* rgb */ color: rgb(58, 116, 18);
/* oklch */ color: oklch(50.0% 0.140 136.1);
Tailwind
colors: {
  custom: {
    50: '#779c5a',
    500: '#3a7412',
    950: '#000000',
  },
}
SCSS
$custom: #3a7412;
$custom-light: #779c5a;
$custom-dark: #000000;
JSON
{
  "hex": "#3a7412",
  "rgb": {
    "r": 58,
    "g": 116,
    "b": 18
  },
  "hsl": {
    "h": 95.51,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.50018,
    "c": 0.13952,
    "h": 136.1
  },
  "luminance": 0.13434
}

Semantic roles & 50–950 ramp

primary
#3A7412
secondary
#7C37AB
accent
#38F0A5
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090E04
muted
#7B7E79

Preview Lab

Preview with #3A7412

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

Preview Lab → · Contrast checker → · Palette generator →

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