#3F5012#3F5012

#3F5012 is a dark, moderate yellow-green. Relative luminance 0.068; OKLCH L 40.3% C 0.088 H 123.7°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#3F5012
RGBrgb(63, 80, 18)
HSLhsl(76, 63%, 19%)
HSVhsv(76, 78%, 31%)
CMYKcmyk(21.2%, 0%, 77.5%, 68.6%)
CIE-LABlab(31.43, -16.77, 32.52)
CIE-LCHlch(31.43, 36.59, 117.27°)
OKLaboklab(40.32% -0.0487 0.0729)
OKLCHoklch(40.32% 0.088 123.7)
XYZxyz(5.0278, 6.8377, 1.6271)
Luminance0.0684 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F5012 #231250
analogous
#504212 #3F5012 #205012
triadic
#3F5012 #123F50 #50123F
tetradic
#3F5012 #125042 #231250 #501220
square
#3F5012 #125042 #231250 #501220
split-complementary
#3F5012 #122050 #421250
monochromatic
#141906 #181E07 #3F5012 #66821D #8EB428

Accessibility & contrast

On white

8.87
#3F5012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#3F5012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F5012
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F5012#FFFFFF#000000##FFFFFF
##3F50121.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554A08
Deuteranopia (green-blind)
#534A17
Tritanopia (blue-blind)
#424C44
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #3f5012;
/* rgb */ color: rgb(63, 80, 18);
/* oklch */ color: oklch(40.3% 0.088 123.7);
Tailwind
colors: {
  custom: {
    50: '#768154',
    500: '#3f5012',
    950: '#000000',
  },
}
SCSS
$custom: #3f5012;
$custom-light: #768154;
$custom-dark: #000000;
JSON
{
  "hex": "#3f5012",
  "rgb": {
    "r": 63,
    "g": 80,
    "b": 18
  },
  "hsl": {
    "h": 76.452,
    "s": 63.265,
    "l": 19.216
  },
  "oklch": {
    "l": 0.40321,
    "c": 0.08763,
    "h": 123.7
  },
  "luminance": 0.06838
}

Semantic roles & 50–950 ramp

primary
#3F5012
secondary
#4C3589
accent
#41E66F
background
#F7F7F5
surface
#EDEEE9
border
#C8C9C5
text
#090A03
muted
#7B7C78

Preview Lab

Preview with #3F5012

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

Preview Lab → · Contrast checker → · Palette generator →

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