#3A8012#3A8012

#3A8012 is a mid, vivid yellow-green. Relative luminance 0.164; OKLCH L 53.4% C 0.154 H 137.4°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#3A8012
RGBrgb(58, 128, 18)
HSLhsl(98, 75%, 29%)
HSVhsv(98, 86%, 50%)
CMYKcmyk(54.7%, 0%, 85.9%, 49.8%)
CIE-LABlab(47.47, -40.94, 47.52)
CIE-LCHlch(47.47, 62.73, 130.75°)
OKLaboklab(53.36% -0.1137 0.1045)
OKLCHoklch(53.36% 0.154 137.4)
XYZxyz(9.5730, 16.3808, 3.2295)
Luminance0.1638 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A8012 #581280
analogous
#718012 #3A8012 #128021
triadic
#3A8012 #123A80 #80123A
tetradic
#3A8012 #127180 #581280 #802112
square
#3A8012 #127180 #581280 #802112
split-complementary
#3A8012 #211280 #801271
monochromatic
#0C1B04 #224A0A #3A8012 #52B61A #6DE12B

Accessibility & contrast

On white

4.91
#3A8012 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#3A8012 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A8012
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A8012#FFFFFF#000000##FFFFFF
##3A80121.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#7C6E20
Tritanopia (blue-blind)
#357B6C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #3a8012;
/* rgb */ color: rgb(58, 128, 18);
/* oklch */ color: oklch(53.4% 0.154 137.4);
Tailwind
colors: {
  custom: {
    50: '#79a55c',
    500: '#3a8012',
    950: '#000000',
  },
}
SCSS
$custom: #3a8012;
$custom-light: #79a55c;
$custom-dark: #000000;
JSON
{
  "hex": "#3a8012",
  "rgb": {
    "r": 58,
    "g": 128,
    "b": 18
  },
  "hsl": {
    "h": 98.182,
    "s": 75.342,
    "l": 28.627
  },
  "oklch": {
    "l": 0.53363,
    "c": 0.15439,
    "h": 137.4
  },
  "luminance": 0.16382
}

Semantic roles & 50–950 ramp

primary
#3A8012
secondary
#8838B6
accent
#36F2AE
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F04
muted
#7C7F79

Preview Lab

Preview with #3A8012

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

Preview Lab → · Contrast checker → · Palette generator →

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