#403A0C#403A0C

#403A0C is a dark, moderate yellow. Relative luminance 0.041; OKLCH L 34.5% C 0.063 H 101.7°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#403A0C
RGBrgb(64, 58, 12)
HSLhsl(53, 68%, 15%)
HSVhsv(53, 81%, 25%)
CMYKcmyk(0%, 9.4%, 81.2%, 74.9%)
CIE-LABlab(24.14, -3.65, 27.99)
CIE-LCHlch(24.14, 28.23, 97.42°)
OKLaboklab(34.48% -0.0129 0.0621)
OKLCHoklch(34.48% 0.063 101.7)
XYZxyz(3.6939, 4.1428, 0.9528)
Luminance0.0414 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403A0C #0C1240
analogous
#40200C #403A0C #2C400C
triadic
#403A0C #0C403A #3A0C40
tetradic
#403A0C #0C4020 #0C1240 #400C2C
square
#403A0C #0C4020 #0C1240 #400C2C
split-complementary
#403A0C #0C2C40 #200C40
monochromatic
#1A1705 #1A1705 #403A0C #746916 #A7971F

Accessibility & contrast

On white

11.48
#403A0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403A0C
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403A0C#FFFFFF#000000##FFFFFF
##403A0C1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#403805
Deuteranopia (green-blind)
#423A0F
Tritanopia (blue-blind)
#463531
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #403a0c;
/* rgb */ color: rgb(64, 58, 12);
/* oklch */ color: oklch(34.5% 0.063 101.7);
Tailwind
colors: {
  custom: {
    50: '#776f4e',
    500: '#403a0c',
    950: '#000000',
  },
}
SCSS
$custom: #403a0c;
$custom-light: #776f4e;
$custom-dark: #000000;
JSON
{
  "hex": "#403a0c",
  "rgb": {
    "r": 64,
    "g": 58,
    "b": 12
  },
  "hsl": {
    "h": 53.077,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.34477,
    "c": 0.06342,
    "h": 101.7
  },
  "luminance": 0.04143
}

Semantic roles & 50–950 ramp

primary
#403A0C
secondary
#2C357C
accent
#51EB3D
background
#F7F6F4
surface
#EDECE7
border
#C8C7C3
text
#090702
muted
#7B7A78

Preview Lab

Preview with #403A0C

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

Preview Lab → · Contrast checker → · Palette generator →

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