#400647#400647

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

Color values

HEX#400647
RGBrgb(64, 6, 71)
HSLhsl(294, 84%, 15%)
HSVhsv(294, 92%, 28%)
CMYKcmyk(9.9%, 91.5%, 0%, 72.2%)
CIE-LABlab(13.68, 35.45, -25.39)
CIE-LCHlch(13.68, 43.60, 324.39°)
OKLaboklab(27.17% 0.0945 -0.0711)
OKLCHoklch(27.17% 0.118 323)
XYZxyz(3.3167, 1.6754, 6.1087)
Luminance0.0168 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400647 #0D4706
analogous
#1F0647 #400647 #47062E
triadic
#400647 #474006 #064740
tetradic
#400647 #471F06 #0D4706 #062E47
square
#400647 #471F06 #0D4706 #062E47
split-complementary
#400647 #2E4706 #06471F
monochromatic
#19021C #19021C #400647 #730B7F #A610B8

Accessibility & contrast

On white

15.73
#400647 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400647
15.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400647#FFFFFF#000000##FFFFFF
##4006471.0015.731.3415.73
#FFFFFF15.731.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F49
Deuteranopia (green-blind)
#122546
Tritanopia (blue-blind)
#411427
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #400647;
/* rgb */ color: rgb(64, 6, 71);
/* oklch */ color: oklch(27.2% 0.118 323.0);
Tailwind
colors: {
  custom: {
    50: '#784f7a',
    500: '#400647',
    950: '#000000',
  },
}
SCSS
$custom: #400647;
$custom-light: #784f7a;
$custom-dark: #000000;
JSON
{
  "hex": "#400647",
  "rgb": {
    "r": 64,
    "g": 6,
    "b": 71
  },
  "hsl": {
    "h": 293.538,
    "s": 84.416,
    "l": 15.098
  },
  "oklch": {
    "l": 0.27167,
    "c": 0.1182,
    "h": 323
  },
  "luminance": 0.01675
}

Semantic roles & 50–950 ramp

primary
#400647
secondary
#2D8623
accent
#FB2D43
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090209
muted
#7B787B

Preview Lab

Preview with #400647

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

Preview Lab → · Contrast checker → · Palette generator →

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