#403042#403042

#403042 is a dark, muted purple. Relative luminance 0.036; OKLCH L 33.4% C 0.038 H 322.7°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#403042
RGBrgb(64, 48, 66)
HSLhsl(293, 16%, 22%)
HSVhsv(293, 27%, 26%)
CMYKcmyk(3%, 27.3%, 0%, 74.1%)
CIE-LABlab(22.29, 11.07, -8.48)
CIE-LCHlch(22.29, 13.95, 322.55°)
OKLaboklab(33.44% 0.03 -0.0229)
OKLCHoklch(33.44% 0.038 322.7)
XYZxyz(4.1546, 3.5973, 5.6287)
Luminance0.0360 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403042 #324230
analogous
#373042 #403042 #42303B
triadic
#403042 #424030 #304240
tetradic
#403042 #423730 #324230 #303B42
square
#403042 #423730 #324230 #303B42
split-complementary
#403042 #3B4230 #304237
monochromatic
#110D12 #1E161F #403042 #624A65 #856489

Accessibility & contrast

On white

12.21
#403042 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#403042 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403042
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403042#FFFFFF#000000##FFFFFF
##4030421.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E3443
Deuteranopia (green-blind)
#323641
Tritanopia (blue-blind)
#413236
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #403042;
/* rgb */ color: rgb(64, 48, 66);
/* oklch */ color: oklch(33.4% 0.038 322.7);
Tailwind
colors: {
  custom: {
    50: '#756876',
    500: '#403042',
    950: '#000000',
  },
}
SCSS
$custom: #403042;
$custom-light: #756876;
$custom-dark: #000000;
JSON
{
  "hex": "#403042",
  "rgb": {
    "r": 64,
    "g": 48,
    "b": 66
  },
  "hsl": {
    "h": 293.333,
    "s": 15.789,
    "l": 22.353
  },
  "oklch": {
    "l": 0.33443,
    "c": 0.03778,
    "h": 322.7
  },
  "luminance": 0.03597
}

Semantic roles & 50–950 ramp

primary
#403042
secondary
#5E725C
accent
#B96F77
background
#F7F6F7
surface
#EDEBED
border
#C8C6C8
text
#080608
muted
#7B7A7B

Preview Lab

Preview with #403042

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

Preview Lab → · Contrast checker → · Palette generator →

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