#3A6817#3A6817

#3A6817 is a mid, vivid yellow-green. Relative luminance 0.109; OKLCH L 46.7% C 0.121 H 134.8°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#3A6817
RGBrgb(58, 104, 23)
HSLhsl(94, 64%, 25%)
HSVhsv(94, 78%, 41%)
CMYKcmyk(44.2%, 0%, 77.9%, 59.2%)
CIE-LABlab(39.35, -30.49, 38.23)
CIE-LCHlch(39.35, 48.90, 128.57°)
OKLaboklab(46.69% -0.0853 0.0858)
OKLCHoklch(46.69% 0.121 134.8)
XYZxyz(6.8497, 10.8617, 2.5460)
Luminance0.1086 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A6817 #451768
analogous
#636817 #3A6817 #17681C
triadic
#3A6817 #173A68 #68173A
tetradic
#3A6817 #176368 #451768 #681C17
square
#3A6817 #176368 #451768 #681C17
split-complementary
#3A6817 #1C1768 #681763
monochromatic
#0E1906 #1E360C #3A6817 #569A22 #72CC2D

Accessibility & contrast

On white

6.62
#3A6817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#3A6817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A6817
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A6817#FFFFFF#000000##FFFFFF
##3A68171.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6C5F07
Deuteranopia (green-blind)
#665B1F
Tritanopia (blue-blind)
#396458
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #3a6817;
/* rgb */ color: rgb(58, 104, 23);
/* oklch */ color: oklch(46.7% 0.121 134.8);
Tailwind
colors: {
  custom: {
    50: '#75935a',
    500: '#3a6817',
    950: '#000000',
  },
}
SCSS
$custom: #3a6817;
$custom-light: #75935a;
$custom-dark: #000000;
JSON
{
  "hex": "#3a6817",
  "rgb": {
    "r": 58,
    "g": 104,
    "b": 23
  },
  "hsl": {
    "h": 94.074,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.46692,
    "c": 0.12094,
    "h": 134.8
  },
  "luminance": 0.10862
}

Semantic roles & 50–950 ramp

primary
#3A6817
secondary
#743D9E
accent
#41E79F
background
#F7F9F5
surface
#EDF1E9
border
#C8CBC5
text
#090D04
muted
#7B7E79

Preview Lab

Preview with #3A6817

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

Preview Lab → · Contrast checker → · Palette generator →

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