#400746#400746

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

Color values

HEX#400746
RGBrgb(64, 7, 70)
HSLhsl(294, 82%, 15%)
HSVhsv(294, 90%, 27%)
CMYKcmyk(8.6%, 90%, 0%, 72.5%)
CIE-LABlab(13.74, 34.88, -24.61)
CIE-LCHlch(13.74, 42.68, 324.80°)
OKLaboklab(27.18% 0.0936 -0.0688)
OKLCHoklch(27.18% 0.116 323.7)
XYZxyz(3.2957, 1.6844, 5.9447)
Luminance0.0168 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400746 #0D4607
analogous
#210746 #400746 #46072C
triadic
#400746 #464007 #074640
tetradic
#400746 #462107 #0D4607 #072C46
square
#400746 #462107 #0D4607 #072C46
split-complementary
#400746 #2C4607 #074621
monochromatic
#19031C #19031C #400746 #730D7E #A612B5

Accessibility & contrast

On white

15.71
#400746 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400746
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400746#FFFFFF#000000##FFFFFF
##4007461.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #400746;
/* rgb */ color: rgb(64, 7, 70);
/* oklch */ color: oklch(27.2% 0.116 323.7);
Tailwind
colors: {
  custom: {
    50: '#784f7a',
    500: '#400746',
    950: '#000000',
  },
}
SCSS
$custom: #400746;
$custom-light: #784f7a;
$custom-dark: #000000;
JSON
{
  "hex": "#400746",
  "rgb": {
    "r": 64,
    "g": 7,
    "b": 70
  },
  "hsl": {
    "h": 294.286,
    "s": 81.818,
    "l": 15.098
  },
  "oklch": {
    "l": 0.2718,
    "c": 0.11614,
    "h": 323.7
  },
  "luminance": 0.01684
}

Semantic roles & 50–950 ramp

primary
#400746
secondary
#2D8524
accent
#F83043
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090209
muted
#7B787B

Preview Lab

Preview with #400746

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

Preview Lab → · Contrast checker → · Palette generator →

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