#40422E#40422E

#40422E is a dark, muted yellow. Relative luminance 0.052; OKLCH L 37.1% C 0.033 H 112.6°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#40422E
RGBrgb(64, 66, 46)
HSLhsl(66, 18%, 22%)
HSVhsv(66, 30%, 26%)
CMYKcmyk(3%, 0%, 30.3%, 74.1%)
CIE-LABlab(27.25, -4.81, 11.93)
CIE-LCHlch(27.25, 12.87, 111.93°)
OKLaboklab(37.12% -0.0125 0.03)
OKLCHoklch(37.12% 0.033 112.6)
XYZxyz(4.5557, 5.1837, 3.3448)
Luminance0.0518 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40422E #302E42
analogous
#423A2E #40422E #36422E
triadic
#40422E #2E4042 #422E40
tetradic
#40422E #2E423A #302E42 #422E36
square
#40422E #2E423A #302E42 #422E36
split-complementary
#40422E #2E3642 #3A2E42
monochromatic
#11120D #1D1E15 #40422E #636647 #868A60

Accessibility & contrast

On white

10.31
#40422E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#40422E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40422E
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40422E#FFFFFF#000000##FFFFFF
##40422E1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#45402D
Deuteranopia (green-blind)
#45412F
Tritanopia (blue-blind)
#43403D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #40422e;
/* rgb */ color: rgb(64, 66, 46);
/* oklch */ color: oklch(37.1% 0.033 112.6);
Tailwind
colors: {
  custom: {
    50: '#757666',
    500: '#40422e',
    950: '#000000',
  },
}
SCSS
$custom: #40422e;
$custom-light: #757666;
$custom-dark: #000000;
JSON
{
  "hex": "#40422e",
  "rgb": {
    "r": 64,
    "g": 66,
    "b": 46
  },
  "hsl": {
    "h": 66,
    "s": 17.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.37116,
    "c": 0.03254,
    "h": 112.6
  },
  "luminance": 0.05184
}

Semantic roles & 50–950 ramp

primary
#40422E
secondary
#5C5973
accent
#6DBB75
background
#F7F7F6
surface
#EDEDEB
border
#C8C8C6
text
#080806
muted
#7B7B7A

Preview Lab

Preview with #40422E

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

Preview Lab → · Contrast checker → · Palette generator →

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