#3A7F17#3A7F17

#3A7F17 is a mid, vivid yellow-green. Relative luminance 0.161; OKLCH L 53.1% C 0.151 H 137.7°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#3A7F17
RGBrgb(58, 127, 23)
HSLhsl(100, 69%, 29%)
HSVhsv(100, 82%, 50%)
CMYKcmyk(54.3%, 0%, 81.9%, 50.2%)
CIE-LABlab(47.16, -40.28, 45.75)
CIE-LCHlch(47.16, 60.96, 131.36°)
OKLaboklab(53.11% -0.1116 0.1015)
OKLCHoklch(53.11% 0.151 137.7)
XYZxyz(9.4886, 16.1394, 3.4257)
Luminance0.1614 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A7F17 #5C177F
analogous
#6E7F17 #3A7F17 #177F28
triadic
#3A7F17 #173A7F #7F173A
tetradic
#3A7F17 #176E7F #5C177F #7F2817
square
#3A7F17 #176E7F #5C177F #7F2817
split-complementary
#3A7F17 #28177F #7F176E
monochromatic
#0C1A05 #224B0E #3A7F17 #52B320 #6DDB36

Accessibility & contrast

On white

4.97
#3A7F17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#3A7F17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A7F17
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A7F17#FFFFFF#000000##FFFFFF
##3A7F171.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#7A6E23
Tritanopia (blue-blind)
#357A6C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #3a7f17;
/* rgb */ color: rgb(58, 127, 23);
/* oklch */ color: oklch(53.1% 0.151 137.7);
Tailwind
colors: {
  custom: {
    50: '#78a55e',
    500: '#3a7f17',
    950: '#000000',
  },
}
SCSS
$custom: #3a7f17;
$custom-light: #78a55e;
$custom-dark: #000000;
JSON
{
  "hex": "#3a7f17",
  "rgb": {
    "r": 58,
    "g": 127,
    "b": 23
  },
  "hsl": {
    "h": 99.808,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.53112,
    "c": 0.15087,
    "h": 137.7
  },
  "luminance": 0.1614
}

Semantic roles & 50–950 ramp

primary
#3A7F17
secondary
#8C3EB4
accent
#3CECB1
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #3A7F17

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

Preview Lab → · Contrast checker → · Palette generator →

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