#3B5012#3B5012

#3B5012 is a dark, moderate yellow-green. Relative luminance 0.067; OKLCH L 40.0% C 0.090 H 126.5°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#3B5012
RGBrgb(59, 80, 18)
HSLhsl(80, 63%, 19%)
HSVhsv(80, 78%, 31%)
CMYKcmyk(26.2%, 0%, 77.5%, 68.6%)
CIE-LABlab(31.14, -18.61, 32.13)
CIE-LCHlch(31.14, 37.13, 120.08°)
OKLaboklab(40.01% -0.0535 0.0721)
OKLCHoklch(40.01% 0.09 126.5)
XYZxyz(4.7815, 6.7107, 1.6155)
Luminance0.0671 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B5012 #271250
analogous
#504612 #3B5012 #1C5012
triadic
#3B5012 #123B50 #50123B
tetradic
#3B5012 #125046 #271250 #50121C
square
#3B5012 #125046 #271250 #50121C
split-complementary
#3B5012 #121C50 #461250
monochromatic
#121906 #161E07 #3B5012 #60821D #85B428

Accessibility & contrast

On white

8.97
#3B5012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#3B5012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B5012
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B5012#FFFFFF#000000##FFFFFF
##3B50121.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554A08
Deuteranopia (green-blind)
#524917
Tritanopia (blue-blind)
#3E4C44
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3b5012;
/* rgb */ color: rgb(59, 80, 18);
/* oklch */ color: oklch(40.0% 0.090 126.5);
Tailwind
colors: {
  custom: {
    50: '#738154',
    500: '#3b5012',
    950: '#000000',
  },
}
SCSS
$custom: #3b5012;
$custom-light: #738154;
$custom-dark: #000000;
JSON
{
  "hex": "#3b5012",
  "rgb": {
    "r": 59,
    "g": 80,
    "b": 18
  },
  "hsl": {
    "h": 80.323,
    "s": 63.265,
    "l": 19.216
  },
  "oklch": {
    "l": 0.40005,
    "c": 0.08979,
    "h": 126.5
  },
  "luminance": 0.06711
}

Semantic roles & 50–950 ramp

primary
#3B5012
secondary
#513589
accent
#41E679
background
#F7F7F5
surface
#EDEEE9
border
#C8C9C5
text
#080A03
muted
#7B7C78

Preview Lab

Preview with #3B5012

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

Preview Lab → · Contrast checker → · Palette generator →

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