#400747#400747

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

Color values

HEX#400747
RGBrgb(64, 7, 71)
HSLhsl(293, 82%, 15%)
HSVhsv(293, 90%, 28%)
CMYKcmyk(9.9%, 90.1%, 0%, 72.2%)
CIE-LABlab(13.81, 35.08, -25.18)
CIE-LCHlch(13.81, 43.18, 324.32°)
OKLaboklab(27.26% 0.0935 -0.0705)
OKLCHoklch(27.26% 0.117 323)
XYZxyz(3.3276, 1.6971, 6.1123)
Luminance0.0170 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400747 #0E4707
analogous
#200747 #400747 #47072E
triadic
#400747 #474007 #074740
tetradic
#400747 #472007 #0E4707 #072E47
square
#400747 #472007 #0E4707 #072E47
split-complementary
#400747 #2E4707 #074720
monochromatic
#19031C #19031C #400747 #720C7F #A412B6

Accessibility & contrast

On white

15.68
#400747 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400747
15.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400747#FFFFFF#000000##FFFFFF
##4007471.0015.681.3415.68
#FFFFFF15.681.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #400747;
/* rgb */ color: rgb(64, 7, 71);
/* oklch */ color: oklch(27.3% 0.117 323.0);
Tailwind
colors: {
  custom: {
    50: '#78507a',
    500: '#400747',
    950: '#000000',
  },
}
SCSS
$custom: #400747;
$custom-light: #78507a;
$custom-dark: #000000;
JSON
{
  "hex": "#400747",
  "rgb": {
    "r": 64,
    "g": 7,
    "b": 71
  },
  "hsl": {
    "h": 293.438,
    "s": 82.051,
    "l": 15.294
  },
  "oklch": {
    "l": 0.27257,
    "c": 0.11704,
    "h": 323
  },
  "luminance": 0.01697
}

Semantic roles & 50–950 ramp

primary
#400747
secondary
#2F8624
accent
#F82F45
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090209
muted
#7B787B

Preview Lab

Preview with #400747

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

Preview Lab → · Contrast checker → · Palette generator →

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