#400A47#400A47

#400A47 is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.5% C 0.114 H 322.8°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).

Color values

HEX#400A47
RGBrgb(64, 10, 71)
HSLhsl(293, 75%, 16%)
HSVhsv(293, 86%, 28%)
CMYKcmyk(9.9%, 85.9%, 0%, 72.2%)
CIE-LABlab(14.19, 33.99, -24.58)
CIE-LCHlch(14.19, 41.94, 324.13°)
OKLaboklab(27.52% 0.0905 -0.0687)
OKLCHoklch(27.52% 0.114 322.8)
XYZxyz(3.3601, 1.7622, 6.1232)
Luminance0.0176 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400A47 #11470A
analogous
#210A47 #400A47 #470A2F
triadic
#400A47 #47400A #0A4740
tetradic
#400A47 #47210A #11470A #0A2F47
square
#400A47 #47210A #11470A #0A2F47
split-complementary
#400A47 #2F470A #0A4721
monochromatic
#18041B #18041B #400A47 #70127D #A119B2

Accessibility & contrast

On white

15.53
#400A47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#400A47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400A47
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400A47#FFFFFF#000000##FFFFFF
##400A471.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002049
Deuteranopia (green-blind)
#142646
Tritanopia (blue-blind)
#411628
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #400a47;
/* rgb */ color: rgb(64, 10, 71);
/* oklch */ color: oklch(27.5% 0.114 322.8);
Tailwind
colors: {
  custom: {
    50: '#77517a',
    500: '#400a47',
    950: '#000000',
  },
}
SCSS
$custom: #400a47;
$custom-light: #77517a;
$custom-dark: #000000;
JSON
{
  "hex": "#400a47",
  "rgb": {
    "r": 64,
    "g": 10,
    "b": 71
  },
  "hsl": {
    "h": 293.115,
    "s": 75.309,
    "l": 15.882
  },
  "oklch": {
    "l": 0.27523,
    "c": 0.11363,
    "h": 322.8
  },
  "luminance": 0.01762
}

Semantic roles & 50–950 ramp

primary
#400A47
secondary
#338429
accent
#F2364B
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090209
muted
#7B787B

Preview Lab

Preview with #400A47

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

Preview Lab → · Contrast checker → · Palette generator →

#400A47 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva