#400547#400547

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

Color values

HEX#400547
RGBrgb(64, 5, 71)
HSLhsl(294, 87%, 15%)
HSVhsv(294, 93%, 28%)
CMYKcmyk(9.9%, 93%, 0%, 72.2%)
CIE-LABlab(13.55, 35.82, -25.59)
CIE-LCHlch(13.55, 44.03, 324.46°)
OKLaboklab(27.08% 0.0955 -0.0717)
OKLCHoklch(27.08% 0.119 323.1)
XYZxyz(3.3058, 1.6537, 6.1051)
Luminance0.0165 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400547 #0C4705
analogous
#1F0547 #400547 #47052D
triadic
#400547 #474005 #054740
tetradic
#400547 #471F05 #0C4705 #052D47
square
#400547 #471F05 #0C4705 #052D47
split-complementary
#400547 #2D4705 #05471F
monochromatic
#1A021D #1A021D #400547 #740980 #A70DB9

Accessibility & contrast

On white

15.78
#400547 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400547
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400547#FFFFFF#000000##FFFFFF
##4005471.0015.781.3315.78
#FFFFFF15.781.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #400547;
/* rgb */ color: rgb(64, 5, 71);
/* oklch */ color: oklch(27.1% 0.119 323.1);
Tailwind
colors: {
  custom: {
    50: '#784f7a',
    500: '#400547',
    950: '#000000',
  },
}
SCSS
$custom: #400547;
$custom-light: #784f7a;
$custom-dark: #000000;
JSON
{
  "hex": "#400547",
  "rgb": {
    "r": 64,
    "g": 5,
    "b": 71
  },
  "hsl": {
    "h": 293.636,
    "s": 86.842,
    "l": 14.902
  },
  "oklch": {
    "l": 0.27076,
    "c": 0.11938,
    "h": 323.1
  },
  "luminance": 0.01653
}

Semantic roles & 50–950 ramp

primary
#400547
secondary
#2C8721
accent
#FD2B41
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090209
muted
#7B787B

Preview Lab

Preview with #400547

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

Preview Lab → · Contrast checker → · Palette generator →

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