#40412E#40412E

#40412E is a dark, muted yellow. Relative luminance 0.051; OKLCH L 36.9% C 0.031 H 110.3°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#40412E
RGBrgb(64, 65, 46)
HSLhsl(63, 17%, 22%)
HSVhsv(63, 29%, 25%)
CMYKcmyk(1.5%, 0%, 29.2%, 74.5%)
CIE-LABlab(26.93, -4.18, 11.50)
CIE-LCHlch(26.93, 12.23, 109.98°)
OKLaboklab(36.86% -0.0107 0.029)
OKLCHoklch(36.86% 0.031 110.3)
XYZxyz(4.4978, 5.0679, 3.3255)
Luminance0.0507 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40412E #2F2E41
analogous
#41392E #40412E #37412E
triadic
#40412E #2E4041 #412E40
tetradic
#40412E #2E4139 #2F2E41 #412E37
square
#40412E #2E4139 #2F2E41 #412E37
split-complementary
#40412E #2E3741 #392E41
monochromatic
#12120D #1D1D15 #40412E #636547 #878961

Accessibility & contrast

On white

10.43
#40412E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#40412E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40412E
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40412E#FFFFFF#000000##FFFFFF
##40412E1.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#443F2D
Deuteranopia (green-blind)
#44402F
Tritanopia (blue-blind)
#433F3C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #40412e;
/* rgb */ color: rgb(64, 65, 46);
/* oklch */ color: oklch(36.9% 0.031 110.3);
Tailwind
colors: {
  custom: {
    50: '#757566',
    500: '#40412e',
    950: '#000000',
  },
}
SCSS
$custom: #40412e;
$custom-light: #757566;
$custom-dark: #000000;
JSON
{
  "hex": "#40412e",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 46
  },
  "hsl": {
    "h": 63.158,
    "s": 17.117,
    "l": 21.765
  },
  "oklch": {
    "l": 0.36858,
    "c": 0.03091,
    "h": 110.3
  },
  "luminance": 0.05068
}

Semantic roles & 50–950 ramp

primary
#40412E
secondary
#5B5972
accent
#6EBA72
background
#F7F7F6
surface
#EDEDEB
border
#C8C8C6
text
#080806
muted
#7B7B7A

Preview Lab

Preview with #40412E

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

Preview Lab → · Contrast checker → · Palette generator →

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