#402648#402648

#402648 is a dark, moderate purple. Relative luminance 0.029; OKLCH L 31.7% C 0.067 H 317.9°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#402648
RGBrgb(64, 38, 72)
HSLhsl(286, 31%, 22%)
HSVhsv(286, 47%, 28%)
CMYKcmyk(11.1%, 47.2%, 0%, 71.8%)
CIE-LABlab(19.82, 19.19, -16.36)
CIE-LCHlch(19.82, 25.22, 319.55°)
OKLaboklab(31.66% 0.05 -0.0451)
OKLCHoklch(31.66% 0.067 317.9)
XYZxyz(3.9770, 2.9442, 6.4884)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402648 #2E4826
analogous
#2F2648 #402648 #48263F
triadic
#402648 #484026 #264840
tetradic
#402648 #482F26 #2E4826 #263F48
square
#402648 #482F26 #2E4826 #263F48
split-complementary
#402648 #3F4826 #26482F
monochromatic
#120B14 #1C1120 #402648 #643B70 #875098

Accessibility & contrast

On white

13.22
#402648 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#402648 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402648
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402648#FFFFFF#000000##FFFFFF
##4026481.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#212E49
Deuteranopia (green-blind)
#273147
Tritanopia (blue-blind)
#402A33
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #402648;
/* rgb */ color: rgb(64, 38, 72);
/* oklch */ color: oklch(31.7% 0.067 317.9);
Tailwind
colors: {
  custom: {
    50: '#75617b',
    500: '#402648',
    950: '#000000',
  },
}
SCSS
$custom: #402648;
$custom-light: #75617b;
$custom-dark: #000000;
JSON
{
  "hex": "#402648",
  "rgb": {
    "r": 64,
    "g": 38,
    "b": 72
  },
  "hsl": {
    "h": 285.882,
    "s": 30.909,
    "l": 21.569
  },
  "oklch": {
    "l": 0.3166,
    "c": 0.06736,
    "h": 317.9
  },
  "luminance": 0.02944
}

Semantic roles & 50–950 ramp

primary
#402648
secondary
#597B4F
accent
#C76179
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#080509
muted
#7B797B

Preview Lab

Preview with #402648

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

Preview Lab → · Contrast checker → · Palette generator →

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