#3A7A12#3A7A12

#3A7A12 is a mid, vivid yellow-green. Relative luminance 0.149; OKLCH L 51.7% C 0.147 H 136.8°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#3A7A12
RGBrgb(58, 122, 18)
HSLhsl(97, 74%, 27%)
HSVhsv(97, 85%, 48%)
CMYKcmyk(52.5%, 0%, 85.2%, 52.2%)
CIE-LABlab(45.44, -38.53, 45.69)
CIE-LCHlch(45.44, 59.77, 130.14°)
OKLaboklab(51.69% -0.1072 0.1006)
OKLCHoklch(51.69% 0.147 136.8)
XYZxyz(8.8134, 14.8616, 2.9763)
Luminance0.1486 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A7A12 #52127A
analogous
#6E7A12 #3A7A12 #127A1E
triadic
#3A7A12 #123A7A #7A123A
tetradic
#3A7A12 #126E7A #52127A #7A1E12
square
#3A7A12 #126E7A #52127A #7A1E12
split-complementary
#3A7A12 #1E127A #7A126E
monochromatic
#0D1B04 #21450A #3A7A12 #53AF1A #6EDF27

Accessibility & contrast

On white

5.29
#3A7A12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#3A7A12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A7A12
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A7A12#FFFFFF#000000##FFFFFF
##3A7A121.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F00
Deuteranopia (green-blind)
#766A1F
Tritanopia (blue-blind)
#367567
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #3a7a12;
/* rgb */ color: rgb(58, 122, 18);
/* oklch */ color: oklch(51.7% 0.147 136.8);
Tailwind
colors: {
  custom: {
    50: '#78a15b',
    500: '#3a7a12',
    950: '#000000',
  },
}
SCSS
$custom: #3a7a12;
$custom-light: #78a15b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a7a12",
  "rgb": {
    "r": 58,
    "g": 122,
    "b": 18
  },
  "hsl": {
    "h": 96.923,
    "s": 74.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.51693,
    "c": 0.14703,
    "h": 136.8
  },
  "luminance": 0.14862
}

Semantic roles & 50–950 ramp

primary
#3A7A12
secondary
#8238B0
accent
#37F1A9
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090F04
muted
#7B7E79

Preview Lab

Preview with #3A7A12

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

Preview Lab → · Contrast checker → · Palette generator →

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