#3B7D12#3B7D12

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

Color values

HEX#3B7D12
RGBrgb(59, 125, 18)
HSLhsl(97, 75%, 28%)
HSVhsv(97, 86%, 49%)
CMYKcmyk(52.8%, 0%, 85.6%, 51%)
CIE-LABlab(46.50, -39.44, 46.66)
CIE-LCHlch(46.50, 61.09, 130.20°)
OKLaboklab(52.57% -0.1097 0.1026)
OKLCHoklch(52.57% 0.15 136.9)
XYZxyz(9.2461, 15.6400, 3.1038)
Luminance0.1564 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B7D12 #54127D
analogous
#707D12 #3B7D12 #127D1E
triadic
#3B7D12 #123B7D #7D123B
tetradic
#3B7D12 #12707D #54127D #7D1E12
square
#3B7D12 #12707D #54127D #7D1E12
split-complementary
#3B7D12 #1E127D #7D1270
monochromatic
#0D1B04 #22480A #3B7D12 #54B21A #6FE029

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3B7D12#FFFFFF#000000##FFFFFF
##3B7D121.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)
#796C20
Tritanopia (blue-blind)
#37786A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #3b7d12;
/* rgb */ color: rgb(59, 125, 18);
/* oklch */ color: oklch(52.6% 0.150 136.9);
Tailwind
colors: {
  custom: {
    50: '#79a35b',
    500: '#3b7d12',
    950: '#000000',
  },
}
SCSS
$custom: #3b7d12;
$custom-light: #79a35b;
$custom-dark: #000000;
JSON
{
  "hex": "#3b7d12",
  "rgb": {
    "r": 59,
    "g": 125,
    "b": 18
  },
  "hsl": {
    "h": 97.009,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.52573,
    "c": 0.15023,
    "h": 136.9
  },
  "luminance": 0.15641
}

Semantic roles & 50–950 ramp

primary
#3B7D12
secondary
#8438B3
accent
#36F1AA
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F04
muted
#7C7F79

Preview Lab

Preview with #3B7D12

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

Preview Lab → · Contrast checker → · Palette generator →

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