#3A7E12#3A7E12

#3A7E12 is a mid, vivid yellow-green. Relative luminance 0.159; OKLCH L 52.8% C 0.152 H 137.2°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#3A7E12
RGBrgb(58, 126, 18)
HSLhsl(98, 75%, 28%)
HSVhsv(98, 86%, 49%)
CMYKcmyk(54%, 0%, 85.7%, 50.6%)
CIE-LABlab(46.80, -40.15, 46.91)
CIE-LCHlch(46.80, 61.75, 130.56°)
OKLaboklab(52.81% -0.1115 0.1032)
OKLCHoklch(52.81% 0.152 137.2)
XYZxyz(9.3147, 15.8642, 3.1434)
Luminance0.1587 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A7E12 #56127E
analogous
#707E12 #3A7E12 #127E20
triadic
#3A7E12 #123A7E #7E123A
tetradic
#3A7E12 #12707E #56127E #7E2012
square
#3A7E12 #12707E #56127E #7E2012
split-complementary
#3A7E12 #20127E #7E1270
monochromatic
#0C1B04 #21480A #3A7E12 #53B41A #6EE12A

Accessibility & contrast

On white

5.03
#3A7E12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#3A7E12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A7E12
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A7E12#FFFFFF#000000##FFFFFF
##3A7E121.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#7A6D20
Tritanopia (blue-blind)
#35796B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #3a7e12;
/* rgb */ color: rgb(58, 126, 18);
/* oklch */ color: oklch(52.8% 0.152 137.2);
Tailwind
colors: {
  custom: {
    50: '#78a45c',
    500: '#3a7e12',
    950: '#000000',
  },
}
SCSS
$custom: #3a7e12;
$custom-light: #78a45c;
$custom-dark: #000000;
JSON
{
  "hex": "#3a7e12",
  "rgb": {
    "r": 58,
    "g": 126,
    "b": 18
  },
  "hsl": {
    "h": 97.778,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.52807,
    "c": 0.15195,
    "h": 137.2
  },
  "luminance": 0.15865
}

Semantic roles & 50–950 ramp

primary
#3A7E12
secondary
#8638B4
accent
#36F2AC
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F04
muted
#7C7F79

Preview Lab

Preview with #3A7E12

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

Preview Lab → · Contrast checker → · Palette generator →

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