#3B7D17#3B7D17

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

Color values

HEX#3B7D17
RGBrgb(59, 125, 23)
HSLhsl(99, 69%, 29%)
HSVhsv(99, 82%, 49%)
CMYKcmyk(52.8%, 0%, 81.6%, 51%)
CIE-LABlab(46.52, -39.16, 45.17)
CIE-LCHlch(46.52, 59.78, 130.93°)
OKLaboklab(52.6% -0.1087 0.1003)
OKLCHoklch(52.6% 0.148 137.3)
XYZxyz(9.2916, 15.6582, 3.3432)
Luminance0.1566 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B7D17 #59177D
analogous
#6E7D17 #3B7D17 #177D26
triadic
#3B7D17 #173B7D #7D173B
tetradic
#3B7D17 #176E7D #59177D #7D2617
square
#3B7D17 #176E7D #59177D #7D2617
split-complementary
#3B7D17 #26177D #7D176E
monochromatic
#0C1A05 #23490D #3B7D17 #53B121 #6FDA35

Accessibility & contrast

On white

5.08
#3B7D17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #3B7D17
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B7D17#FFFFFF#000000##FFFFFF
##3B7D171.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3b7d17;
/* rgb */ color: rgb(59, 125, 23);
/* oklch */ color: oklch(52.6% 0.148 137.3);
Tailwind
colors: {
  custom: {
    50: '#78a35d',
    500: '#3b7d17',
    950: '#000000',
  },
}
SCSS
$custom: #3b7d17;
$custom-light: #78a35d;
$custom-dark: #000000;
JSON
{
  "hex": "#3b7d17",
  "rgb": {
    "r": 59,
    "g": 125,
    "b": 23
  },
  "hsl": {
    "h": 98.824,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52601,
    "c": 0.14788,
    "h": 137.3
  },
  "luminance": 0.15659
}

Semantic roles & 50–950 ramp

primary
#3B7D17
secondary
#893EB2
accent
#3CECAE
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #3B7D17

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

Preview Lab → · Contrast checker → · Palette generator →

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