#40402E#40402E

#40402E is a dark, muted yellow. Relative luminance 0.050; OKLCH L 36.6% C 0.029 H 107.8°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#40402E
RGBrgb(64, 64, 46)
HSLhsl(60, 16%, 22%)
HSVhsv(60, 28%, 25%)
CMYKcmyk(0%, 0%, 28.1%, 74.9%)
CIE-LABlab(26.60, -3.55, 11.06)
CIE-LCHlch(26.60, 11.61, 107.80°)
OKLaboklab(36.6% -0.0089 0.0279)
OKLCHoklch(36.6% 0.029 107.8)
XYZxyz(4.4409, 4.9541, 3.3065)
Luminance0.0495 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40402E #2E2E40
analogous
#40372E #40402E #37402E
triadic
#40402E #2E4040 #402E40
tetradic
#40402E #2E4037 #2E2E40 #402E37
square
#40402E #2E4037 #2E2E40 #402E37
split-complementary
#40402E #2E3740 #372E40
monochromatic
#12120D #1C1C14 #40402E #646448 #878761

Accessibility & contrast

On white

10.55
#40402E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40402E
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40402E#FFFFFF#000000##FFFFFF
##40402E1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433E2D
Deuteranopia (green-blind)
#433F2F
Tritanopia (blue-blind)
#433E3B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #40402e;
/* rgb */ color: rgb(64, 64, 46);
/* oklch */ color: oklch(36.6% 0.029 107.8);
Tailwind
colors: {
  custom: {
    50: '#757466',
    500: '#40402e',
    950: '#000000',
  },
}
SCSS
$custom: #40402e;
$custom-light: #757466;
$custom-dark: #000000;
JSON
{
  "hex": "#40402e",
  "rgb": {
    "r": 64,
    "g": 64,
    "b": 46
  },
  "hsl": {
    "h": 60,
    "s": 16.364,
    "l": 21.569
  },
  "oklch": {
    "l": 0.36601,
    "c": 0.02933,
    "h": 107.8
  },
  "luminance": 0.04954
}

Semantic roles & 50–950 ramp

primary
#40402E
secondary
#595970
accent
#6FB96F
background
#F7F7F6
surface
#EDEDEB
border
#C8C8C6
text
#080806
muted
#7B7B7A

Preview Lab

Preview with #40402E

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

Preview Lab → · Contrast checker → · Palette generator →

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