#403A12#403A12

#403A12 is a dark, muted yellow. Relative luminance 0.042; OKLCH L 34.5% C 0.058 H 100.8°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#403A12
RGBrgb(64, 58, 18)
HSLhsl(52, 56%, 16%)
HSVhsv(52, 72%, 25%)
CMYKcmyk(0%, 9.4%, 71.9%, 74.9%)
CIE-LABlab(24.19, -3.23, 25.06)
CIE-LCHlch(24.19, 25.27, 97.35°)
OKLaboklab(34.54% -0.0109 0.0571)
OKLCHoklch(34.54% 0.058 100.8)
XYZxyz(3.7367, 4.1599, 1.1783)
Luminance0.0416 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403A12 #121840
analogous
#402312 #403A12 #2F4012
triadic
#403A12 #12403A #3A1240
tetradic
#403A12 #124023 #121840 #40122F
square
#403A12 #124023 #121840 #40122F
split-complementary
#403A12 #122F40 #231240
monochromatic
#181607 #181607 #403A12 #70651F #A0912D

Accessibility & contrast

On white

11.46
#403A12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#403A12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403A12
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403A12#FFFFFF#000000##FFFFFF
##403A121.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#40380D
Deuteranopia (green-blind)
#423B14
Tritanopia (blue-blind)
#453632
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #403a12;
/* rgb */ color: rgb(64, 58, 18);
/* oklch */ color: oklch(34.5% 0.058 100.8);
Tailwind
colors: {
  custom: {
    50: '#776f52',
    500: '#403a12',
    950: '#000000',
  },
}
SCSS
$custom: #403a12;
$custom-light: #776f52;
$custom-dark: #000000;
JSON
{
  "hex": "#403a12",
  "rgb": {
    "r": 64,
    "g": 58,
    "b": 18
  },
  "hsl": {
    "h": 52.174,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.34539,
    "c": 0.05814,
    "h": 100.8
  },
  "luminance": 0.0416
}

Semantic roles & 50–950 ramp

primary
#403A12
secondary
#353E79
accent
#5CDF48
background
#F7F6F4
surface
#EDECE7
border
#C8C7C3
text
#090702
muted
#7B7A78

Preview Lab

Preview with #403A12

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

Preview Lab → · Contrast checker → · Palette generator →

#403A12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva