#3A6F12#3A6F12

#3A6F12 is a mid, vivid yellow-green. Relative luminance 0.123; OKLCH L 48.6% C 0.133 H 135.4°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#3A6F12
RGBrgb(58, 111, 18)
HSLhsl(94, 72%, 25%)
HSVhsv(94, 84%, 44%)
CMYKcmyk(47.7%, 0%, 83.8%, 56.5%)
CIE-LABlab(41.71, -33.91, 42.26)
CIE-LCHlch(41.71, 54.19, 128.74°)
OKLaboklab(48.62% -0.0948 0.0934)
OKLCHoklch(48.62% 0.133 135.4)
XYZxyz(7.5384, 12.3116, 2.5513)
Luminance0.1231 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A6F12 #47126F
analogous
#686F12 #3A6F12 #126F19
triadic
#3A6F12 #123A6F #6F123A
tetradic
#3A6F12 #12686F #47126F #6F1912
square
#3A6F12 #12686F #47126F #6F1912
split-complementary
#3A6F12 #19126F #6F1268
monochromatic
#0E1A04 #1E3A09 #3A6F12 #56A41B #71D823

Accessibility & contrast

On white

6.07
#3A6F12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#3A6F12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A6F12
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A6F12#FFFFFF#000000##FFFFFF
##3A6F121.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736500
Deuteranopia (green-blind)
#6C611D
Tritanopia (blue-blind)
#386A5E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #3a6f12;
/* rgb */ color: rgb(58, 111, 18);
/* oklch */ color: oklch(48.6% 0.133 135.4);
Tailwind
colors: {
  custom: {
    50: '#769959',
    500: '#3a6f12',
    950: '#000000',
  },
}
SCSS
$custom: #3a6f12;
$custom-light: #769959;
$custom-dark: #000000;
JSON
{
  "hex": "#3a6f12",
  "rgb": {
    "r": 58,
    "g": 111,
    "b": 18
  },
  "hsl": {
    "h": 94.194,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.48619,
    "c": 0.13311,
    "h": 135.4
  },
  "luminance": 0.12312
}

Semantic roles & 50–950 ramp

primary
#3A6F12
secondary
#7637A6
accent
#39EFA1
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#090E04
muted
#7B7E79

Preview Lab

Preview with #3A6F12

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

Preview Lab → · Contrast checker → · Palette generator →

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