#3A6512#3A6512

#3A6512 is a mid, moderate yellow-green. Relative luminance 0.103; OKLCH L 45.8% C 0.120 H 133.7°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#3A6512
RGBrgb(58, 101, 18)
HSLhsl(91, 70%, 23%)
HSVhsv(91, 82%, 40%)
CMYKcmyk(42.6%, 0%, 82.2%, 60.4%)
CIE-LABlab(38.29, -29.45, 39.06)
CIE-LCHlch(38.29, 48.92, 127.01°)
OKLaboklab(45.82% -0.0828 0.0867)
OKLCHoklch(45.82% 0.12 133.7)
XYZxyz(6.5077, 10.2502, 2.2078)
Luminance0.1025 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A6512 #3D1265
analogous
#636512 #3A6512 #126513
triadic
#3A6512 #123A65 #65123A
tetradic
#3A6512 #126365 #3D1265 #651312
square
#3A6512 #126365 #3D1265 #651312
split-complementary
#3A6512 #131265 #651263
monochromatic
#0F1A05 #1C3109 #3A6512 #58991B #76CD25

Accessibility & contrast

On white

6.88
#3A6512 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#3A6512 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A6512
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A6512#FFFFFF#000000##FFFFFF
##3A65121.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#695C00
Deuteranopia (green-blind)
#64591B
Tritanopia (blue-blind)
#3A6156
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #3a6512;
/* rgb */ color: rgb(58, 101, 18);
/* oklch */ color: oklch(45.8% 0.120 133.7);
Tailwind
colors: {
  custom: {
    50: '#759157',
    500: '#3a6512',
    950: '#000000',
  },
}
SCSS
$custom: #3a6512;
$custom-light: #759157;
$custom-dark: #000000;
JSON
{
  "hex": "#3a6512",
  "rgb": {
    "r": 58,
    "g": 101,
    "b": 18
  },
  "hsl": {
    "h": 91.084,
    "s": 69.748,
    "l": 23.333
  },
  "oklch": {
    "l": 0.45815,
    "c": 0.1199,
    "h": 133.7
  },
  "luminance": 0.10251
}

Semantic roles & 50–950 ramp

primary
#3A6512
secondary
#6B369D
accent
#3BED97
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090D03
muted
#7B7D78

Preview Lab

Preview with #3A6512

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

Preview Lab → · Contrast checker → · Palette generator →

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