#400C47#400C47

#400C47 is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.7% C 0.111 H 322.6°. Best body text is #FFFFFF at 15.42:1 contrast (WCAG AA passes).

Color values

HEX#400C47
RGBrgb(64, 12, 71)
HSLhsl(293, 71%, 16%)
HSVhsv(293, 83%, 28%)
CMYKcmyk(9.9%, 83.1%, 0%, 72.2%)
CIE-LABlab(14.45, 33.24, -24.16)
CIE-LCHlch(14.45, 41.09, 323.98°)
OKLaboklab(27.71% 0.0885 -0.0675)
OKLCHoklch(27.71% 0.111 322.6)
XYZxyz(3.3830, 1.8081, 6.1308)
Luminance0.0181 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C47 #13470C
analogous
#230C47 #400C47 #470C31
triadic
#400C47 #47400C #0C4740
tetradic
#400C47 #47230C #13470C #0C3147
square
#400C47 #47230C #13470C #0C3147
split-complementary
#400C47 #31470C #0C4723
monochromatic
#18041A #18041A #400C47 #6F157B #9E1EB0

Accessibility & contrast

On white

15.42
#400C47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#400C47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400C47
15.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C47#FFFFFF#000000##FFFFFF
##400C471.0015.421.3615.42
#FFFFFF15.421.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002149
Deuteranopia (green-blind)
#152646
Tritanopia (blue-blind)
#411729
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #400c47;
/* rgb */ color: rgb(64, 12, 71);
/* oklch */ color: oklch(27.7% 0.111 322.6);
Tailwind
colors: {
  custom: {
    50: '#77517a',
    500: '#400c47',
    950: '#000000',
  },
}
SCSS
$custom: #400c47;
$custom-light: #77517a;
$custom-dark: #000000;
JSON
{
  "hex": "#400c47",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 71
  },
  "hsl": {
    "h": 292.881,
    "s": 71.084,
    "l": 16.275
  },
  "oklch": {
    "l": 0.27707,
    "c": 0.1113,
    "h": 322.6
  },
  "luminance": 0.01808
}

Semantic roles & 50–950 ramp

primary
#400C47
secondary
#36832C
accent
#EE3A4F
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090209
muted
#7B787B

Preview Lab

Preview with #400C47

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

Preview Lab → · Contrast checker → · Palette generator →

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