#3A7212#3A7212

#3A7212 is a mid, vivid yellow-green. Relative luminance 0.130; OKLCH L 49.5% C 0.137 H 135.9°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#3A7212
RGBrgb(58, 114, 18)
HSLhsl(95, 73%, 26%)
HSVhsv(95, 84%, 45%)
CMYKcmyk(49.1%, 0%, 84.2%, 55.3%)
CIE-LABlab(42.73, -35.20, 43.21)
CIE-LCHlch(42.73, 55.73, 129.17°)
OKLaboklab(49.46% -0.0983 0.0954)
OKLCHoklch(49.46% 0.137 135.9)
XYZxyz(7.8712, 12.9773, 2.6623)
Luminance0.1298 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A7212 #4A1272
analogous
#6A7212 #3A7212 #12721A
triadic
#3A7212 #123A72 #72123A
tetradic
#3A7212 #126A72 #4A1272 #721A12
square
#3A7212 #126A72 #4A1272 #721A12
split-complementary
#3A7212 #1A1272 #72126A
monochromatic
#0D1A04 #1F3D0A #3A7212 #55A71A #70DC23

Accessibility & contrast

On white

5.84
#3A7212 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#3A7212 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A7212
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A7212#FFFFFF#000000##FFFFFF
##3A72121.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766800
Deuteranopia (green-blind)
#6F631D
Tritanopia (blue-blind)
#386D61
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #3a7212;
/* rgb */ color: rgb(58, 114, 18);
/* oklch */ color: oklch(49.5% 0.137 135.9);
Tailwind
colors: {
  custom: {
    50: '#769b5a',
    500: '#3a7212',
    950: '#000000',
  },
}
SCSS
$custom: #3a7212;
$custom-light: #769b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#3a7212",
  "rgb": {
    "r": 58,
    "g": 114,
    "b": 18
  },
  "hsl": {
    "h": 95,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.49459,
    "c": 0.13696,
    "h": 135.9
  },
  "luminance": 0.12978
}

Semantic roles & 50–950 ramp

primary
#3A7212
secondary
#7937A9
accent
#38EFA3
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#090E04
muted
#7B7E79

Preview Lab

Preview with #3A7212

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

Preview Lab → · Contrast checker → · Palette generator →

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