#3A7F12#3A7F12

#3A7F12 is a mid, vivid yellow-green. Relative luminance 0.161; OKLCH L 53.1% C 0.153 H 137.3°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#3A7F12
RGBrgb(58, 127, 18)
HSLhsl(98, 75%, 28%)
HSVhsv(98, 86%, 50%)
CMYKcmyk(54.3%, 0%, 85.8%, 50.2%)
CIE-LABlab(47.13, -40.55, 47.22)
CIE-LCHlch(47.13, 62.24, 130.65°)
OKLaboklab(53.09% -0.1126 0.1038)
OKLCHoklch(53.09% 0.153 137.3)
XYZxyz(9.4432, 16.1212, 3.1862)
Luminance0.1612 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A7F12 #57127F
analogous
#707F12 #3A7F12 #127F21
triadic
#3A7F12 #123A7F #7F123A
tetradic
#3A7F12 #12707F #57127F #7F2112
square
#3A7F12 #12707F #57127F #7F2112
split-complementary
#3A7F12 #21127F #7F1270
monochromatic
#0C1B04 #22490A #3A7F12 #52B51A #6DE12B

Accessibility & contrast

On white

4.97
#3A7F12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#3A7F12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A7F12
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A7F12#FFFFFF#000000##FFFFFF
##3A7F121.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#7B6E20
Tritanopia (blue-blind)
#357A6C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #3a7f12;
/* rgb */ color: rgb(58, 127, 18);
/* oklch */ color: oklch(53.1% 0.153 137.3);
Tailwind
colors: {
  custom: {
    50: '#78a55c',
    500: '#3a7f12',
    950: '#000000',
  },
}
SCSS
$custom: #3a7f12;
$custom-light: #78a55c;
$custom-dark: #000000;
JSON
{
  "hex": "#3a7f12",
  "rgb": {
    "r": 58,
    "g": 127,
    "b": 18
  },
  "hsl": {
    "h": 97.982,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.53085,
    "c": 0.15317,
    "h": 137.3
  },
  "luminance": 0.16122
}

Semantic roles & 50–950 ramp

primary
#3A7F12
secondary
#8738B5
accent
#36F2AD
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F04
muted
#7C7F79

Preview Lab

Preview with #3A7F12

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

Preview Lab → · Contrast checker → · Palette generator →

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