#3B5812#3B5812

#3B5812 is a dark, moderate yellow-green. Relative luminance 0.080; OKLCH L 42.2% C 0.101 H 129.8°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#3B5812
RGBrgb(59, 88, 18)
HSLhsl(85, 66%, 21%)
HSVhsv(85, 80%, 35%)
CMYKcmyk(33%, 0%, 79.5%, 65.5%)
CIE-LABlab(33.88, -22.77, 34.85)
CIE-LCHlch(33.88, 41.63, 123.17°)
OKLaboklab(42.24% -0.0648 0.0778)
OKLCHoklch(42.24% 0.101 129.8)
XYZxyz(5.4025, 7.9528, 1.8225)
Luminance0.0795 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B5812 #2F1258
analogous
#585212 #3B5812 #185812
triadic
#3B5812 #123B58 #58123B
tetradic
#3B5812 #125852 #2F1258 #581218
square
#3B5812 #125852 #2F1258 #581218
split-complementary
#3B5812 #121858 #521258
monochromatic
#111905 #192508 #3B5812 #5D8B1C #7FBE27

Accessibility & contrast

On white

8.11
#3B5812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#3B5812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B5812
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B5812#FFFFFF#000000##FFFFFF
##3B58121.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C5105
Deuteranopia (green-blind)
#584F19
Tritanopia (blue-blind)
#3D544B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3b5812;
/* rgb */ color: rgb(59, 88, 18);
/* oklch */ color: oklch(42.2% 0.101 129.8);
Tailwind
colors: {
  custom: {
    50: '#748756',
    500: '#3b5812',
    950: '#000000',
  },
}
SCSS
$custom: #3b5812;
$custom-light: #748756;
$custom-dark: #000000;
JSON
{
  "hex": "#3b5812",
  "rgb": {
    "r": 59,
    "g": 88,
    "b": 18
  },
  "hsl": {
    "h": 84.857,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.42235,
    "c": 0.1013,
    "h": 129.8
  },
  "luminance": 0.07953
}

Semantic roles & 50–950 ramp

primary
#3B5812
secondary
#5B3591
accent
#3FE985
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#080B03
muted
#7B7C78

Preview Lab

Preview with #3B5812

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

Preview Lab → · Contrast checker → · Palette generator →

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