#403D0F#403D0F

#403D0F is a dark, moderate yellow. Relative luminance 0.045; OKLCH L 35.3% C 0.064 H 105.6°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#403D0F
RGBrgb(64, 61, 15)
HSLhsl(56, 62%, 15%)
HSVhsv(56, 77%, 25%)
CMYKcmyk(0%, 4.7%, 76.6%, 74.9%)
CIE-LABlab(25.14, -5.34, 27.58)
CIE-LCHlch(25.14, 28.09, 100.95°)
OKLaboklab(35.28% -0.0173 0.0619)
OKLCHoklch(35.28% 0.064 105.6)
XYZxyz(3.8695, 4.4621, 1.1093)
Luminance0.0446 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403D0F #0F1240
analogous
#40240F #403D0F #2A400F
triadic
#403D0F #0F403D #3D0F40
tetradic
#403D0F #0F4024 #0F1240 #400F2A
square
#403D0F #0F4024 #0F1240 #400F2A
split-complementary
#403D0F #0F2A40 #240F40
monochromatic
#191806 #191806 #403D0F #726C1B #A39C26

Accessibility & contrast

On white

11.10
#403D0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#403D0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403D0F
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403D0F#FFFFFF#000000##FFFFFF
##403D0F1.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433B09
Deuteranopia (green-blind)
#443D12
Tritanopia (blue-blind)
#453834
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #403d0f;
/* rgb */ color: rgb(64, 61, 15);
/* oklch */ color: oklch(35.3% 0.064 105.6);
Tailwind
colors: {
  custom: {
    50: '#777250',
    500: '#403d0f',
    950: '#000000',
  },
}
SCSS
$custom: #403d0f;
$custom-light: #777250;
$custom-dark: #000000;
JSON
{
  "hex": "#403d0f",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 15
  },
  "hsl": {
    "h": 56.327,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.35285,
    "c": 0.06424,
    "h": 105.6
  },
  "luminance": 0.04462
}

Semantic roles & 50–950 ramp

primary
#403D0F
secondary
#30357A
accent
#4DE543
background
#F7F6F4
surface
#EDECE7
border
#C8C7C3
text
#090702
muted
#7B7A78

Preview Lab

Preview with #403D0F

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

Preview Lab → · Contrast checker → · Palette generator →

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