#40402C#40402C

#40402C is a dark, muted yellow. Relative luminance 0.049; OKLCH L 36.6% C 0.032 H 107.9°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#40402C
RGBrgb(64, 64, 44)
HSLhsl(60, 19%, 21%)
HSVhsv(60, 31%, 25%)
CMYKcmyk(0%, 0%, 31.2%, 74.9%)
CIE-LABlab(26.56, -3.88, 12.28)
CIE-LCHlch(26.56, 12.88, 107.54°)
OKLaboklab(36.55% -0.01 0.0308)
OKLCHoklch(36.55% 0.032 107.9)
XYZxyz(4.4024, 4.9387, 3.1037)
Luminance0.0494 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40402C #2C2C40
analogous
#40362C #40402C #36402C
triadic
#40402C #2C4040 #402C40
tetradic
#40402C #2C4036 #2C2C40 #402C36
square
#40402C #2C4036 #2C2C40 #402C36
split-complementary
#40402C #2C3640 #362C40
monochromatic
#12120C #1C1C13 #40402C #646445 #89895E

Accessibility & contrast

On white

10.56
#40402C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#40402C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40402C
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40402C#FFFFFF#000000##FFFFFF
##40402C1.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433E2B
Deuteranopia (green-blind)
#443F2D
Tritanopia (blue-blind)
#433E3B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #40402c;
/* rgb */ color: rgb(64, 64, 44);
/* oklch */ color: oklch(36.6% 0.032 107.9);
Tailwind
colors: {
  custom: {
    50: '#757465',
    500: '#40402c',
    950: '#000000',
  },
}
SCSS
$custom: #40402c;
$custom-light: #757465;
$custom-dark: #000000;
JSON
{
  "hex": "#40402c",
  "rgb": {
    "r": 64,
    "g": 64,
    "b": 44
  },
  "hsl": {
    "h": 60,
    "s": 18.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.36552,
    "c": 0.03239,
    "h": 107.9
  },
  "luminance": 0.04939
}

Semantic roles & 50–950 ramp

primary
#40402C
secondary
#575771
accent
#6DBB6D
background
#F7F7F6
surface
#EDEDEB
border
#C8C8C6
text
#080805
muted
#7B7B7A

Preview Lab

Preview with #40402C

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

Preview Lab → · Contrast checker → · Palette generator →

#40402C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva