#403242#403242

#403242 is a dark, muted purple. Relative luminance 0.038; OKLCH L 33.9% C 0.033 H 322.1°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#403242
RGBrgb(64, 50, 66)
HSLhsl(293, 14%, 23%)
HSVhsv(293, 24%, 26%)
CMYKcmyk(3%, 24.2%, 0%, 74.1%)
CIE-LABlab(22.88, 9.73, -7.60)
CIE-LCHlch(22.88, 12.34, 322.01°)
OKLaboklab(33.89% 0.0263 -0.0205)
OKLCHoklch(33.89% 0.033 322.1)
XYZxyz(4.2382, 3.7646, 5.6566)
Luminance0.0377 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403242 #344232
analogous
#383242 #403242 #42323C
triadic
#403242 #424032 #324240
tetradic
#403242 #423832 #344232 #323C42
square
#403242 #423832 #344232 #323C42
split-complementary
#403242 #3C4232 #324238
monochromatic
#110D11 #1E181F #403242 #624C65 #846788

Accessibility & contrast

On white

11.98
#403242 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#403242 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403242
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403242#FFFFFF#000000##FFFFFF
##4032421.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#313643
Deuteranopia (green-blind)
#343741
Tritanopia (blue-blind)
#413337
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #403242;
/* rgb */ color: rgb(64, 50, 66);
/* oklch */ color: oklch(33.9% 0.033 322.1);
Tailwind
colors: {
  custom: {
    50: '#756a76',
    500: '#403242',
    950: '#000000',
  },
}
SCSS
$custom: #403242;
$custom-light: #756a76;
$custom-dark: #000000;
JSON
{
  "hex": "#403242",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 66
  },
  "hsl": {
    "h": 292.5,
    "s": 13.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.33892,
    "c": 0.03336,
    "h": 322.1
  },
  "luminance": 0.03765
}

Semantic roles & 50–950 ramp

primary
#403242
secondary
#60725E
accent
#B7717A
background
#F7F6F7
surface
#EDEBED
border
#C8C6C8
text
#080608
muted
#7B7A7B

Preview Lab

Preview with #403242

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

Preview Lab → · Contrast checker → · Palette generator →

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