#400F4A#400F4A

#400F4A is a dark, moderate purple. Relative luminance 0.019; OKLCH L 28.2% C 0.110 H 320.3°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).

Color values

HEX#400F4A
RGBrgb(64, 15, 74)
HSLhsl(290, 66%, 17%)
HSVhsv(290, 80%, 29%)
CMYKcmyk(13.5%, 79.7%, 0%, 71%)
CIE-LABlab(15.10, 32.65, -25.20)
CIE-LCHlch(15.10, 41.25, 322.33°)
OKLaboklab(28.24% 0.0849 -0.0706)
OKLCHoklch(28.24% 0.11 320.3)
XYZxyz(3.5211, 1.9262, 6.6636)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F4A #194A0F
analogous
#230F4A #400F4A #4A0F36
triadic
#400F4A #4A400F #0F4A40
tetradic
#400F4A #4A230F #194A0F #0F364A
square
#400F4A #4A230F #194A0F #0F364A
split-complementary
#400F4A #364A0F #0F4A23
monochromatic
#160519 #160519 #400F4A #6C197D #9824B0

Accessibility & contrast

On white

15.16
#400F4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#400F4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400F4A
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F4A#FFFFFF#000000##FFFFFF
##400F4A1.0015.161.3915.16
#FFFFFF15.161.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234C
Deuteranopia (green-blind)
#152849
Tritanopia (blue-blind)
#401A2B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #400f4a;
/* rgb */ color: rgb(64, 15, 74);
/* oklch */ color: oklch(28.2% 0.110 320.3);
Tailwind
colors: {
  custom: {
    50: '#77537d',
    500: '#400f4a',
    950: '#000000',
  },
}
SCSS
$custom: #400f4a;
$custom-light: #77537d;
$custom-dark: #000000;
JSON
{
  "hex": "#400f4a",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 74
  },
  "hsl": {
    "h": 289.831,
    "s": 66.292,
    "l": 17.451
  },
  "oklch": {
    "l": 0.28239,
    "c": 0.11042,
    "h": 320.3
  },
  "luminance": 0.01926
}

Semantic roles & 50–950 ramp

primary
#400F4A
secondary
#3F8430
accent
#E93F5C
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#090309
muted
#7B787B

Preview Lab

Preview with #400F4A

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

Preview Lab → · Contrast checker → · Palette generator →

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