#3F8012#3F8012

#3F8012 is a mid, vivid yellow-green. Relative luminance 0.165; OKLCH L 53.6% C 0.152 H 136.3°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#3F8012
RGBrgb(63, 128, 18)
HSLhsl(95, 75%, 29%)
HSVhsv(95, 86%, 50%)
CMYKcmyk(50.8%, 0%, 85.9%, 49.8%)
CIE-LABlab(47.67, -39.37, 47.78)
CIE-LCHlch(47.67, 61.91, 129.49°)
OKLaboklab(53.59% -0.1098 0.1049)
OKLCHoklch(53.59% 0.152 136.3)
XYZxyz(9.8780, 16.5381, 3.2438)
Luminance0.1654 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F8012 #531280
analogous
#768012 #3F8012 #12801C
triadic
#3F8012 #123F80 #80123F
tetradic
#3F8012 #127680 #531280 #801C12
square
#3F8012 #127680 #531280 #801C12
split-complementary
#3F8012 #1C1280 #801276
monochromatic
#0D1B04 #254A0A #3F8012 #59B61A #76E12B

Accessibility & contrast

On white

4.87
#3F8012 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#3F8012 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3F8012
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F8012#FFFFFF#000000##FFFFFF
##3F80121.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857400
Deuteranopia (green-blind)
#7C6F20
Tritanopia (blue-blind)
#3C7B6C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #3f8012;
/* rgb */ color: rgb(63, 128, 18);
/* oklch */ color: oklch(53.6% 0.152 136.3);
Tailwind
colors: {
  custom: {
    50: '#7ba55c',
    500: '#3f8012',
    950: '#000000',
  },
}
SCSS
$custom: #3f8012;
$custom-light: #7ba55c;
$custom-dark: #000000;
JSON
{
  "hex": "#3f8012",
  "rgb": {
    "r": 63,
    "g": 128,
    "b": 18
  },
  "hsl": {
    "h": 95.455,
    "s": 75.342,
    "l": 28.627
  },
  "oklch": {
    "l": 0.53586,
    "c": 0.15187,
    "h": 136.3
  },
  "luminance": 0.16539
}

Semantic roles & 50–950 ramp

primary
#3F8012
secondary
#8238B6
accent
#36F2A5
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F04
muted
#7C7F79

Preview Lab

Preview with #3F8012

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

Preview Lab → · Contrast checker → · Palette generator →

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