#3A7D17#3A7D17

#3A7D17 is a mid, vivid yellow-green. Relative luminance 0.156; OKLCH L 52.6% C 0.148 H 137.5°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#3A7D17
RGBrgb(58, 125, 23)
HSLhsl(99, 69%, 29%)
HSVhsv(99, 82%, 49%)
CMYKcmyk(53.6%, 0%, 81.6%, 51%)
CIE-LABlab(46.48, -39.48, 45.12)
CIE-LCHlch(46.48, 59.95, 131.18°)
OKLaboklab(52.56% -0.1094 0.1002)
OKLCHoklch(52.56% 0.148 137.5)
XYZxyz(9.2329, 15.6279, 3.3404)
Luminance0.1563 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A7D17 #5A177D
analogous
#6D7D17 #3A7D17 #177D27
triadic
#3A7D17 #173A7D #7D173A
tetradic
#3A7D17 #176D7D #5A177D #7D2717
square
#3A7D17 #176D7D #5A177D #7D2717
split-complementary
#3A7D17 #27177D #7D176D
monochromatic
#0C1A05 #22490D #3A7D17 #52B121 #6DDA35

Accessibility & contrast

On white

5.09
#3A7D17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#3A7D17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A7D17
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A7D17#FFFFFF#000000##FFFFFF
##3A7D171.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817200
Deuteranopia (green-blind)
#796C23
Tritanopia (blue-blind)
#35786A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #3a7d17;
/* rgb */ color: rgb(58, 125, 23);
/* oklch */ color: oklch(52.6% 0.148 137.5);
Tailwind
colors: {
  custom: {
    50: '#78a35d',
    500: '#3a7d17',
    950: '#000000',
  },
}
SCSS
$custom: #3a7d17;
$custom-light: #78a35d;
$custom-dark: #000000;
JSON
{
  "hex": "#3a7d17",
  "rgb": {
    "r": 58,
    "g": 125,
    "b": 23
  },
  "hsl": {
    "h": 99.412,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52556,
    "c": 0.14838,
    "h": 137.5
  },
  "luminance": 0.15629
}

Semantic roles & 50–950 ramp

primary
#3A7D17
secondary
#8A3EB2
accent
#3CECAF
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #3A7D17

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

Preview Lab → · Contrast checker → · Palette generator →

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