#3A7C12#3A7C12

#3A7C12 is a mid, vivid yellow-green. Relative luminance 0.154; OKLCH L 52.3% C 0.149 H 137.0°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#3A7C12
RGBrgb(58, 124, 18)
HSLhsl(97, 75%, 28%)
HSVhsv(97, 85%, 49%)
CMYKcmyk(53.2%, 0%, 85.5%, 51.4%)
CIE-LABlab(46.12, -39.35, 46.30)
CIE-LCHlch(46.12, 60.76, 130.36°)
OKLaboklab(52.25% -0.1094 0.1019)
OKLCHoklch(52.25% 0.15 137)
XYZxyz(9.0615, 15.3578, 3.0590)
Luminance0.1536 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A7C12 #54127C
analogous
#6F7C12 #3A7C12 #127C1F
triadic
#3A7C12 #123A7C #7C123A
tetradic
#3A7C12 #126F7C #54127C #7C1F12
square
#3A7C12 #126F7C #54127C #7C1F12
split-complementary
#3A7C12 #1F127C #7C126F
monochromatic
#0C1B04 #21470A #3A7C12 #53B11A #6EE029

Accessibility & contrast

On white

5.16
#3A7C12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#3A7C12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A7C12
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A7C12#FFFFFF#000000##FFFFFF
##3A7C121.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807100
Deuteranopia (green-blind)
#786B1F
Tritanopia (blue-blind)
#367769
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #3a7c12;
/* rgb */ color: rgb(58, 124, 18);
/* oklch */ color: oklch(52.3% 0.149 137.0);
Tailwind
colors: {
  custom: {
    50: '#78a25b',
    500: '#3a7c12',
    950: '#000000',
  },
}
SCSS
$custom: #3a7c12;
$custom-light: #78a25b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a7c12",
  "rgb": {
    "r": 58,
    "g": 124,
    "b": 18
  },
  "hsl": {
    "h": 97.358,
    "s": 74.648,
    "l": 27.843
  },
  "oklch": {
    "l": 0.5225,
    "c": 0.1495,
    "h": 137
  },
  "luminance": 0.15359
}

Semantic roles & 50–950 ramp

primary
#3A7C12
secondary
#8438B2
accent
#37F1AB
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F04
muted
#7C7F79

Preview Lab

Preview with #3A7C12

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

Preview Lab → · Contrast checker → · Palette generator →

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