#3A6D17#3A6D17

#3A6D17 is a mid, vivid yellow-green. Relative luminance 0.119; OKLCH L 48.1% C 0.128 H 135.6°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#3A6D17
RGBrgb(58, 109, 23)
HSLhsl(96, 65%, 26%)
HSVhsv(96, 79%, 43%)
CMYKcmyk(46.8%, 0%, 78.9%, 57.3%)
CIE-LABlab(41.05, -32.73, 39.91)
CIE-LCHlch(41.05, 51.61, 129.35°)
OKLaboklab(48.09% -0.0913 0.0893)
OKLCHoklch(48.09% 0.128 135.6)
XYZxyz(7.3680, 11.8982, 2.7188)
Luminance0.1190 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A6D17 #4A176D
analogous
#656D17 #3A6D17 #176D1F
triadic
#3A6D17 #173A6D #6D173A
tetradic
#3A6D17 #17656D #4A176D #6D1F17
square
#3A6D17 #17656D #4A176D #6D1F17
split-complementary
#3A6D17 #1F176D #6D1765
monochromatic
#0D1905 #1F3A0C #3A6D17 #55A022 #70D22C

Accessibility & contrast

On white

6.21
#3A6D17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#3A6D17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A6D17
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A6D17#FFFFFF#000000##FFFFFF
##3A6D171.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#716305
Deuteranopia (green-blind)
#6A5F20
Tritanopia (blue-blind)
#38695D
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #3a6d17;
/* rgb */ color: rgb(58, 109, 23);
/* oklch */ color: oklch(48.1% 0.128 135.6);
Tailwind
colors: {
  custom: {
    50: '#75975b',
    500: '#3a6d17',
    950: '#000000',
  },
}
SCSS
$custom: #3a6d17;
$custom-light: #75975b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a6d17",
  "rgb": {
    "r": 58,
    "g": 109,
    "b": 23
  },
  "hsl": {
    "h": 95.581,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.48092,
    "c": 0.1277,
    "h": 135.6
  },
  "luminance": 0.11899
}

Semantic roles & 50–950 ramp

primary
#3A6D17
secondary
#793DA3
accent
#40E8A4
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#090D04
muted
#7B7E79

Preview Lab

Preview with #3A6D17

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

Preview Lab → · Contrast checker → · Palette generator →

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