#403142#403142

#403142 is a dark, muted purple. Relative luminance 0.037; OKLCH L 33.7% C 0.036 H 322.4°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#403142
RGBrgb(64, 49, 66)
HSLhsl(293, 15%, 23%)
HSVhsv(293, 26%, 26%)
CMYKcmyk(3%, 25.8%, 0%, 74.1%)
CIE-LABlab(22.58, 10.40, -8.04)
CIE-LCHlch(22.58, 13.15, 322.29°)
OKLaboklab(33.67% 0.0282 -0.0217)
OKLCHoklch(33.67% 0.036 322.4)
XYZxyz(4.1959, 3.6801, 5.6425)
Luminance0.0368 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403142 #334231
analogous
#373142 #403142 #42313C
triadic
#403142 #424031 #314240
tetradic
#403142 #423731 #334231 #313C42
square
#403142 #423731 #334231 #313C42
split-complementary
#403142 #3C4231 #314237
monochromatic
#110D12 #1E171F #403142 #624B65 #846588

Accessibility & contrast

On white

12.10
#403142 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#403142 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403142
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403142#FFFFFF#000000##FFFFFF
##4031421.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F3543
Deuteranopia (green-blind)
#333741
Tritanopia (blue-blind)
#413337
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #403142;
/* rgb */ color: rgb(64, 49, 66);
/* oklch */ color: oklch(33.7% 0.036 322.4);
Tailwind
colors: {
  custom: {
    50: '#756976',
    500: '#403142',
    950: '#000000',
  },
}
SCSS
$custom: #403142;
$custom-light: #756976;
$custom-dark: #000000;
JSON
{
  "hex": "#403142",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 66
  },
  "hsl": {
    "h": 292.941,
    "s": 14.783,
    "l": 22.549
  },
  "oklch": {
    "l": 0.33667,
    "c": 0.03557,
    "h": 322.4
  },
  "luminance": 0.0368
}

Semantic roles & 50–950 ramp

primary
#403142
secondary
#5F725D
accent
#B87079
background
#F7F6F7
surface
#EDEBED
border
#C8C6C8
text
#080608
muted
#7B7A7B

Preview Lab

Preview with #403142

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

Preview Lab → · Contrast checker → · Palette generator →

#403142 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva