#3A420F#3A420F

#3A420F is a dark, moderate yellow. Relative luminance 0.048; OKLCH L 36.0% C 0.072 H 117.9°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#3A420F
RGBrgb(58, 66, 15)
HSLhsl(69, 63%, 16%)
HSVhsv(69, 77%, 26%)
CMYKcmyk(12.1%, 0%, 77.3%, 74.1%)
CIE-LABlab(26.25, -11.44, 28.52)
CIE-LCHlch(26.25, 30.72, 111.85°)
OKLaboklab(36.03% -0.0339 0.064)
OKLCHoklch(36.03% 0.072 117.9)
XYZxyz(3.7794, 4.8305, 1.1851)
Luminance0.0483 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A420F #170F42
analogous
#42300F #3A420F #20420F
triadic
#3A420F #0F3A42 #420F3A
tetradic
#3A420F #0F4230 #170F42 #420F20
square
#3A420F #0F4230 #170F42 #420F20
split-complementary
#3A420F #0F2042 #300F42
monochromatic
#161906 #161906 #3A420F #66741A #92A626

Accessibility & contrast

On white

10.68
#3A420F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#3A420F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A420F
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A420F#FFFFFF#000000##FFFFFF
##3A420F1.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#473E07
Deuteranopia (green-blind)
#463E13
Tritanopia (blue-blind)
#3E3E38
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3a420f;
/* rgb */ color: rgb(58, 66, 15);
/* oklch */ color: oklch(36.0% 0.072 117.9);
Tailwind
colors: {
  custom: {
    50: '#727651',
    500: '#3a420f',
    950: '#000000',
  },
}
SCSS
$custom: #3a420f;
$custom-light: #727651;
$custom-dark: #000000;
JSON
{
  "hex": "#3a420f",
  "rgb": {
    "r": 58,
    "g": 66,
    "b": 15
  },
  "hsl": {
    "h": 69.412,
    "s": 62.963,
    "l": 15.882
  },
  "oklch": {
    "l": 0.36027,
    "c": 0.07247,
    "h": 117.9
  },
  "luminance": 0.0483
}

Semantic roles & 50–950 ramp

primary
#3A420F
secondary
#3C307C
accent
#42E65C
background
#F7F7F4
surface
#EDEDE7
border
#C8C8C3
text
#080802
muted
#7B7B78

Preview Lab

Preview with #3A420F

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

Preview Lab → · Contrast checker → · Palette generator →

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