#3A400F#3A400F

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

Color values

HEX#3A400F
RGBrgb(58, 64, 15)
HSLhsl(67, 62%, 15%)
HSVhsv(67, 77%, 25%)
CMYKcmyk(9.4%, 0%, 76.6%, 74.9%)
CIE-LABlab(25.57, -10.25, 27.82)
CIE-LCHlch(25.57, 29.65, 110.22°)
OKLaboklab(35.48% -0.0306 0.0626)
OKLCHoklch(35.48% 0.07 116.1)
XYZxyz(3.6646, 4.6009, 1.1469)
Luminance0.0460 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A400F #150F40
analogous
#402D0F #3A400F #21400F
triadic
#3A400F #0F3A40 #400F3A
tetradic
#3A400F #0F402D #150F40 #400F21
square
#3A400F #0F402D #150F40 #400F21
split-complementary
#3A400F #0F2140 #2D0F40
monochromatic
#161906 #161906 #3A400F #67721B #94A326

Accessibility & contrast

On white

10.94
#3A400F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A400F
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A400F#FFFFFF#000000##FFFFFF
##3A400F1.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a400f;
/* rgb */ color: rgb(58, 64, 15);
/* oklch */ color: oklch(35.5% 0.070 116.1);
Tailwind
colors: {
  custom: {
    50: '#727451',
    500: '#3a400f',
    950: '#000000',
  },
}
SCSS
$custom: #3a400f;
$custom-light: #727451;
$custom-dark: #000000;
JSON
{
  "hex": "#3a400f",
  "rgb": {
    "r": 58,
    "g": 64,
    "b": 15
  },
  "hsl": {
    "h": 67.347,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.35481,
    "c": 0.06968,
    "h": 116.1
  },
  "luminance": 0.04601
}

Semantic roles & 50–950 ramp

primary
#3A400F
secondary
#39307A
accent
#43E557
background
#F7F7F4
surface
#EDEDE7
border
#C8C8C3
text
#080802
muted
#7B7B78

Preview Lab

Preview with #3A400F

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

Preview Lab → · Contrast checker → · Palette generator →

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