#3A4012#3A4012

#3A4012 is a dark, moderate yellow. Relative luminance 0.046; OKLCH L 35.5% C 0.067 H 116.2°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#3A4012
RGBrgb(58, 64, 18)
HSLhsl(68, 56%, 16%)
HSVhsv(68, 72%, 25%)
CMYKcmyk(9.4%, 0%, 71.9%, 74.9%)
CIE-LABlab(25.59, -10.02, 26.38)
CIE-LCHlch(25.59, 28.22, 110.79°)
OKLaboklab(35.51% -0.0296 0.0601)
OKLCHoklch(35.51% 0.067 116.2)
XYZxyz(3.6876, 4.6101, 1.2677)
Luminance0.0461 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A4012 #181240
analogous
#402F12 #3A4012 #234012
triadic
#3A4012 #123A40 #40123A
tetradic
#3A4012 #12402F #181240 #401223
square
#3A4012 #12402F #181240 #401223
split-complementary
#3A4012 #122340 #2F1240
monochromatic
#161807 #161807 #3A4012 #65701F #91A02D

Accessibility & contrast

On white

10.93
#3A4012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#3A4012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A4012
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A4012#FFFFFF#000000##FFFFFF
##3A40121.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#453C0C
Deuteranopia (green-blind)
#443D15
Tritanopia (blue-blind)
#3E3C36
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3a4012;
/* rgb */ color: rgb(58, 64, 18);
/* oklch */ color: oklch(35.5% 0.067 116.2);
Tailwind
colors: {
  custom: {
    50: '#727452',
    500: '#3a4012',
    950: '#000000',
  },
}
SCSS
$custom: #3a4012;
$custom-light: #727452;
$custom-dark: #000000;
JSON
{
  "hex": "#3a4012",
  "rgb": {
    "r": 58,
    "g": 64,
    "b": 18
  },
  "hsl": {
    "h": 67.826,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.35512,
    "c": 0.06699,
    "h": 116.2
  },
  "luminance": 0.0461
}

Semantic roles & 50–950 ramp

primary
#3A4012
secondary
#3E3579
accent
#48DF5C
background
#F7F7F4
surface
#EDEDE7
border
#C8C8C3
text
#080802
muted
#7B7B78

Preview Lab

Preview with #3A4012

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

Preview Lab → · Contrast checker → · Palette generator →

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