#3A7D12#3A7D12

#3A7D12 is a mid, vivid yellow-green. Relative luminance 0.156; OKLCH L 52.5% C 0.151 H 137.1°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#3A7D12
RGBrgb(58, 125, 18)
HSLhsl(98, 75%, 28%)
HSVhsv(98, 86%, 49%)
CMYKcmyk(53.6%, 0%, 85.6%, 51%)
CIE-LABlab(46.46, -39.75, 46.61)
CIE-LCHlch(46.46, 61.26, 130.46°)
OKLaboklab(52.53% -0.1105 0.1026)
OKLCHoklch(52.53% 0.151 137.1)
XYZxyz(9.1874, 15.6098, 3.1010)
Luminance0.1561 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A7D12 #55127D
analogous
#6F7D12 #3A7D12 #127D1F
triadic
#3A7D12 #123A7D #7D123A
tetradic
#3A7D12 #126F7D #55127D #7D1F12
square
#3A7D12 #126F7D #55127D #7D1F12
split-complementary
#3A7D12 #1F127D #7D126F
monochromatic
#0C1B04 #21480A #3A7D12 #53B21A #6EE029

Accessibility & contrast

On white

5.09
#3A7D12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#3A7D12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A7D12
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A7D12#FFFFFF#000000##FFFFFF
##3A7D121.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#796C20
Tritanopia (blue-blind)
#36786A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #3a7d12;
/* rgb */ color: rgb(58, 125, 18);
/* oklch */ color: oklch(52.5% 0.151 137.1);
Tailwind
colors: {
  custom: {
    50: '#78a35b',
    500: '#3a7d12',
    950: '#000000',
  },
}
SCSS
$custom: #3a7d12;
$custom-light: #78a35b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a7d12",
  "rgb": {
    "r": 58,
    "g": 125,
    "b": 18
  },
  "hsl": {
    "h": 97.57,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.52528,
    "c": 0.15073,
    "h": 137.1
  },
  "luminance": 0.1561
}

Semantic roles & 50–950 ramp

primary
#3A7D12
secondary
#8538B3
accent
#36F1AC
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F04
muted
#7C7F79

Preview Lab

Preview with #3A7D12

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

Preview Lab → · Contrast checker → · Palette generator →

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