#3A400C#3A400C

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

Color values

HEX#3A400C
RGBrgb(58, 64, 12)
HSLhsl(67, 68%, 15%)
HSVhsv(67, 81%, 25%)
CMYKcmyk(9.4%, 0%, 81.2%, 74.9%)
CIE-LABlab(25.54, -10.45, 29.16)
CIE-LCHlch(25.54, 30.97, 109.72°)
OKLaboklab(35.45% -0.0315 0.0648)
OKLCHoklch(35.45% 0.072 115.9)
XYZxyz(3.6448, 4.5929, 1.0423)
Luminance0.0459 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A400C #120C40
analogous
#402C0C #3A400C #20400C
triadic
#3A400C #0C3A40 #400C3A
tetradic
#3A400C #0C402C #120C40 #400C20
square
#3A400C #0C402C #120C40 #400C20
split-complementary
#3A400C #0C2040 #2C0C40
monochromatic
#171A05 #171A05 #3A400C #697416 #97A71F

Accessibility & contrast

On white

10.95
#3A400C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A400C
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A400C#FFFFFF#000000##FFFFFF
##3A400C1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#453C04
Deuteranopia (green-blind)
#453D10
Tritanopia (blue-blind)
#3E3C36
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3a400c;
/* rgb */ color: rgb(58, 64, 12);
/* oklch */ color: oklch(35.5% 0.072 115.9);
Tailwind
colors: {
  custom: {
    50: '#72744f',
    500: '#3a400c',
    950: '#000000',
  },
}
SCSS
$custom: #3a400c;
$custom-light: #72744f;
$custom-dark: #000000;
JSON
{
  "hex": "#3a400c",
  "rgb": {
    "r": 58,
    "g": 64,
    "b": 12
  },
  "hsl": {
    "h": 66.923,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.35454,
    "c": 0.07206,
    "h": 115.9
  },
  "luminance": 0.04593
}

Semantic roles & 50–950 ramp

primary
#3A400C
secondary
#352C7C
accent
#3DEB51
background
#F7F7F4
surface
#EDEDE7
border
#C8C8C3
text
#080802
muted
#7B7B78

Preview Lab

Preview with #3A400C

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

Preview Lab → · Contrast checker → · Palette generator →

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