#400648#400648

#400648 is a dark, moderate purple. Relative luminance 0.017; OKLCH L 27.2% C 0.119 H 322.4°. Best body text is #FFFFFF at 15.70:1 contrast (WCAG AA passes).

Color values

HEX#400648
RGBrgb(64, 6, 72)
HSLhsl(293, 85%, 15%)
HSVhsv(293, 92%, 28%)
CMYKcmyk(11.1%, 91.7%, 0%, 71.8%)
CIE-LABlab(13.76, 35.65, -25.96)
CIE-LCHlch(13.76, 44.10, 323.94°)
OKLaboklab(27.25% 0.0943 -0.0727)
OKLCHoklch(27.25% 0.119 322.4)
XYZxyz(3.3491, 1.6883, 6.2791)
Luminance0.0169 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400648 #0E4806
analogous
#1F0648 #400648 #48062F
triadic
#400648 #484006 #064840
tetradic
#400648 #481F06 #0E4806 #062F48
square
#400648 #481F06 #0E4806 #062F48
split-complementary
#400648 #2F4806 #06481F
monochromatic
#19021C #19021C #400648 #720B80 #A40FB9

Accessibility & contrast

On white

15.70
#400648 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#400648 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400648
15.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400648#FFFFFF#000000##FFFFFF
##4006481.0015.701.3415.70
#FFFFFF15.701.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4A
Deuteranopia (green-blind)
#112547
Tritanopia (blue-blind)
#411428
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #400648;
/* rgb */ color: rgb(64, 6, 72);
/* oklch */ color: oklch(27.2% 0.119 322.4);
Tailwind
colors: {
  custom: {
    50: '#784f7b',
    500: '#400648',
    950: '#000000',
  },
}
SCSS
$custom: #400648;
$custom-light: #784f7b;
$custom-dark: #000000;
JSON
{
  "hex": "#400648",
  "rgb": {
    "r": 64,
    "g": 6,
    "b": 72
  },
  "hsl": {
    "h": 292.727,
    "s": 84.615,
    "l": 15.294
  },
  "oklch": {
    "l": 0.27245,
    "c": 0.1191,
    "h": 322.4
  },
  "luminance": 0.01688
}

Semantic roles & 50–950 ramp

primary
#400648
secondary
#2F8723
accent
#FB2D46
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#090209
muted
#7B787B

Preview Lab

Preview with #400648

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

Preview Lab → · Contrast checker → · Palette generator →

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