#400646#400646

#400646 is a dark, moderate purple. Relative luminance 0.017; OKLCH L 27.1% C 0.117 H 323.7°. Best body text is #FFFFFF at 15.76:1 contrast (WCAG AA passes).

Color values

HEX#400646
RGBrgb(64, 6, 70)
HSLhsl(294, 84%, 15%)
HSVhsv(294, 91%, 27%)
CMYKcmyk(8.6%, 91.4%, 0%, 72.5%)
CIE-LABlab(13.61, 35.25, -24.81)
CIE-LCHlch(13.61, 43.11, 324.86°)
OKLaboklab(27.09% 0.0946 -0.0694)
OKLCHoklch(27.09% 0.117 323.7)
XYZxyz(3.2849, 1.6626, 5.9411)
Luminance0.0166 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400646 #0C4606
analogous
#200646 #400646 #46062C
triadic
#400646 #464006 #064640
tetradic
#400646 #462006 #0C4606 #062C46
square
#400646 #462006 #0C4606 #062C46
split-complementary
#400646 #2C4606 #064620
monochromatic
#1A021C #1A021C #400646 #740B7E #A710B7

Accessibility & contrast

On white

15.76
#400646 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#400646 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400646
15.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400646#FFFFFF#000000##FFFFFF
##4006461.0015.761.3315.76
#FFFFFF15.761.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F48
Deuteranopia (green-blind)
#132545
Tritanopia (blue-blind)
#411327
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #400646;
/* rgb */ color: rgb(64, 6, 70);
/* oklch */ color: oklch(27.1% 0.117 323.7);
Tailwind
colors: {
  custom: {
    50: '#784f7a',
    500: '#400646',
    950: '#000000',
  },
}
SCSS
$custom: #400646;
$custom-light: #784f7a;
$custom-dark: #000000;
JSON
{
  "hex": "#400646",
  "rgb": {
    "r": 64,
    "g": 6,
    "b": 70
  },
  "hsl": {
    "h": 294.375,
    "s": 84.211,
    "l": 14.902
  },
  "oklch": {
    "l": 0.2709,
    "c": 0.11731,
    "h": 323.7
  },
  "luminance": 0.01662
}

Semantic roles & 50–950 ramp

primary
#400646
secondary
#2C8522
accent
#FA2D41
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090209
muted
#7B787B

Preview Lab

Preview with #400646

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

Preview Lab → · Contrast checker → · Palette generator →

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