#403812#403812

#403812 is a dark, muted yellow. Relative luminance 0.040; OKLCH L 34.0% C 0.056 H 97.4°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#403812
RGBrgb(64, 56, 18)
HSLhsl(50, 56%, 16%)
HSVhsv(50, 72%, 25%)
CMYKcmyk(0%, 12.5%, 71.9%, 74.9%)
CIE-LABlab(23.55, -1.95, 24.36)
CIE-LCHlch(23.55, 24.44, 94.59°)
OKLaboklab(34.03% -0.0072 0.0556)
OKLCHoklch(34.03% 0.056 97.4)
XYZxyz(3.6379, 3.9622, 1.1453)
Luminance0.0396 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403812 #121A40
analogous
#402112 #403812 #314012
triadic
#403812 #124038 #381240
tetradic
#403812 #124021 #121A40 #401231
square
#403812 #124021 #121A40 #401231
split-complementary
#403812 #123140 #211240
monochromatic
#181507 #181507 #403812 #70621F #A08C2D

Accessibility & contrast

On white

11.72
#403812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#403812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403812
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403812#FFFFFF#000000##FFFFFF
##4038121.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E370E
Deuteranopia (green-blind)
#403914
Tritanopia (blue-blind)
#453330
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #403812;
/* rgb */ color: rgb(64, 56, 18);
/* oklch */ color: oklch(34.0% 0.056 97.4);
Tailwind
colors: {
  custom: {
    50: '#776e52',
    500: '#403812',
    950: '#000000',
  },
}
SCSS
$custom: #403812;
$custom-light: #776e52;
$custom-dark: #000000;
JSON
{
  "hex": "#403812",
  "rgb": {
    "r": 64,
    "g": 56,
    "b": 18
  },
  "hsl": {
    "h": 49.565,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.34026,
    "c": 0.0561,
    "h": 97.4
  },
  "luminance": 0.03962
}

Semantic roles & 50–950 ramp

primary
#403812
secondary
#354179
accent
#63DF48
background
#F7F6F4
surface
#EDEBE7
border
#C8C6C3
text
#090702
muted
#7B7A78

Preview Lab

Preview with #403812

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

Preview Lab → · Contrast checker → · Palette generator →

#403812 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva