#3B7A12#3B7A12

#3B7A12 is a mid, vivid yellow-green. Relative luminance 0.149; OKLCH L 51.7% C 0.147 H 136.6°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#3B7A12
RGBrgb(59, 122, 18)
HSLhsl(96, 74%, 27%)
HSVhsv(96, 85%, 48%)
CMYKcmyk(51.6%, 0%, 85.2%, 52.2%)
CIE-LABlab(45.49, -38.21, 45.74)
CIE-LCHlch(45.49, 59.60, 129.87°)
OKLaboklab(51.74% -0.1064 0.1007)
OKLCHoklch(51.74% 0.147 136.6)
XYZxyz(8.8721, 14.8919, 2.9791)
Luminance0.1489 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B7A12 #51127A
analogous
#6F7A12 #3B7A12 #127A1D
triadic
#3B7A12 #123B7A #7A123B
tetradic
#3B7A12 #126F7A #51127A #7A1D12
square
#3B7A12 #126F7A #51127A #7A1D12
split-complementary
#3B7A12 #1D127A #7A126F
monochromatic
#0D1B04 #21450A #3B7A12 #55AF1A #70DF27

Accessibility & contrast

On white

5.28
#3B7A12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#3B7A12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3B7A12
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B7A12#FFFFFF#000000##FFFFFF
##3B7A121.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F00
Deuteranopia (green-blind)
#766A1F
Tritanopia (blue-blind)
#387567
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #3b7a12;
/* rgb */ color: rgb(59, 122, 18);
/* oklch */ color: oklch(51.7% 0.147 136.6);
Tailwind
colors: {
  custom: {
    50: '#78a15b',
    500: '#3b7a12',
    950: '#000000',
  },
}
SCSS
$custom: #3b7a12;
$custom-light: #78a15b;
$custom-dark: #000000;
JSON
{
  "hex": "#3b7a12",
  "rgb": {
    "r": 59,
    "g": 122,
    "b": 18
  },
  "hsl": {
    "h": 96.346,
    "s": 74.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.51739,
    "c": 0.14652,
    "h": 136.6
  },
  "luminance": 0.14893
}

Semantic roles & 50–950 ramp

primary
#3B7A12
secondary
#8138B0
accent
#37F1A8
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0F04
muted
#7C7E79

Preview Lab

Preview with #3B7A12

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

Preview Lab → · Contrast checker → · Palette generator →

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