#400649#400649

#400649 is a dark, vivid purple. Relative luminance 0.017; OKLCH L 27.3% C 0.120 H 321.7°. Best body text is #FFFFFF at 15.67:1 contrast (WCAG AA passes).

Color values

HEX#400649
RGBrgb(64, 6, 73)
HSLhsl(292, 85%, 15%)
HSVhsv(292, 92%, 29%)
CMYKcmyk(12.3%, 91.8%, 0%, 71.4%)
CIE-LABlab(13.84, 35.85, -26.53)
CIE-LCHlch(13.84, 44.60, 323.50°)
OKLaboklab(27.32% 0.0941 -0.0744)
OKLCHoklch(27.32% 0.12 321.7)
XYZxyz(3.3819, 1.7015, 6.4523)
Luminance0.0170 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400649 #0F4906
analogous
#1E0649 #400649 #490630
triadic
#400649 #494006 #064940
tetradic
#400649 #491E06 #0F4906 #063049
square
#400649 #491E06 #0F4906 #063049
split-complementary
#400649 #304906 #06491E
monochromatic
#19021C #19021C #400649 #720B82 #A30FBA

Accessibility & contrast

On white

15.67
#400649 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400649
15.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400649#FFFFFF#000000##FFFFFF
##4006491.0015.671.3415.67
#FFFFFF15.671.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4B
Deuteranopia (green-blind)
#102548
Tritanopia (blue-blind)
#411529
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #400649;
/* rgb */ color: rgb(64, 6, 73);
/* oklch */ color: oklch(27.3% 0.120 321.7);
Tailwind
colors: {
  custom: {
    50: '#784f7c',
    500: '#400649',
    950: '#000000',
  },
}
SCSS
$custom: #400649;
$custom-light: #784f7c;
$custom-dark: #000000;
JSON
{
  "hex": "#400649",
  "rgb": {
    "r": 64,
    "g": 6,
    "b": 73
  },
  "hsl": {
    "h": 291.94,
    "s": 84.81,
    "l": 15.49
  },
  "oklch": {
    "l": 0.27323,
    "c": 0.12,
    "h": 321.7
  },
  "luminance": 0.01701
}

Semantic roles & 50–950 ramp

primary
#400649
secondary
#308823
accent
#FB2D48
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#090209
muted
#7B787B

Preview Lab

Preview with #400649

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

Preview Lab → · Contrast checker → · Palette generator →

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