#400F47#400F47

#400F47 is a dark, moderate purple. Relative luminance 0.019; OKLCH L 28.0% C 0.107 H 322.4°. Best body text is #FFFFFF at 15.25:1 contrast (WCAG AA passes).

Color values

HEX#400F47
RGBrgb(64, 15, 71)
HSLhsl(293, 65%, 17%)
HSVhsv(293, 79%, 28%)
CMYKcmyk(9.9%, 78.9%, 0%, 72.2%)
CIE-LABlab(14.88, 32.00, -23.47)
CIE-LCHlch(14.88, 39.68, 323.74°)
OKLaboklab(28.02% 0.0851 -0.0655)
OKLCHoklch(28.02% 0.107 322.4)
XYZxyz(3.4224, 1.8868, 6.1439)
Luminance0.0189 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F47 #16470F
analogous
#240F47 #400F47 #470F32
triadic
#400F47 #47400F #0F4740
tetradic
#400F47 #47240F #16470F #0F3247
square
#400F47 #47240F #16470F #0F3247
split-complementary
#400F47 #32470F #0F4724
monochromatic
#170519 #170519 #400F47 #6E1A7A #9B24AC

Accessibility & contrast

On white

15.25
#400F47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#400F47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400F47
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F47#FFFFFF#000000##FFFFFF
##400F471.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002249
Deuteranopia (green-blind)
#172746
Tritanopia (blue-blind)
#41192A
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #400f47;
/* rgb */ color: rgb(64, 15, 71);
/* oklch */ color: oklch(28.0% 0.107 322.4);
Tailwind
colors: {
  custom: {
    50: '#77537a',
    500: '#400f47',
    950: '#000000',
  },
}
SCSS
$custom: #400f47;
$custom-light: #77537a;
$custom-dark: #000000;
JSON
{
  "hex": "#400f47",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 71
  },
  "hsl": {
    "h": 292.5,
    "s": 65.116,
    "l": 16.863
  },
  "oklch": {
    "l": 0.28018,
    "c": 0.10741,
    "h": 322.4
  },
  "luminance": 0.01887
}

Semantic roles & 50–950 ramp

primary
#400F47
secondary
#3B8130
accent
#E84055
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090309
muted
#7B787B

Preview Lab

Preview with #400F47

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

Preview Lab → · Contrast checker → · Palette generator →

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