#3B7917#3B7917

#3B7917 is a mid, vivid yellow-green. Relative luminance 0.147; OKLCH L 51.5% C 0.143 H 136.9°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#3B7917
RGBrgb(59, 121, 23)
HSLhsl(98, 68%, 28%)
HSVhsv(98, 81%, 47%)
CMYKcmyk(51.2%, 0%, 81%, 52.5%)
CIE-LABlab(45.17, -37.52, 43.89)
CIE-LCHlch(45.17, 57.74, 130.52°)
OKLaboklab(51.49% -0.1043 0.0976)
OKLCHoklch(51.49% 0.143 136.9)
XYZxyz(8.7954, 14.6658, 3.1778)
Luminance0.1467 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B7917 #551779
analogous
#6C7917 #3B7917 #177924
triadic
#3B7917 #173B79 #79173B
tetradic
#3B7917 #176C79 #551779 #792417
square
#3B7917 #176C79 #551779 #792417
split-complementary
#3B7917 #241779 #79176C
monochromatic
#0D1A05 #22460D #3B7917 #54AC21 #6FD832

Accessibility & contrast

On white

5.34
#3B7917 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#3B7917 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3B7917
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B7917#FFFFFF#000000##FFFFFF
##3B79171.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E00
Deuteranopia (green-blind)
#756922
Tritanopia (blue-blind)
#377467
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #3b7917;
/* rgb */ color: rgb(59, 121, 23);
/* oklch */ color: oklch(51.5% 0.143 136.9);
Tailwind
colors: {
  custom: {
    50: '#78a05d',
    500: '#3b7917',
    950: '#000000',
  },
}
SCSS
$custom: #3b7917;
$custom-light: #78a05d;
$custom-dark: #000000;
JSON
{
  "hex": "#3b7917",
  "rgb": {
    "r": 59,
    "g": 121,
    "b": 23
  },
  "hsl": {
    "h": 97.959,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.51489,
    "c": 0.14283,
    "h": 136.9
  },
  "luminance": 0.14666
}

Semantic roles & 50–950 ramp

primary
#3B7917
secondary
#853EAE
accent
#3DEBAB
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090F04
muted
#7B7E79

Preview Lab

Preview with #3B7917

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

Preview Lab → · Contrast checker → · Palette generator →

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