#400F46#400F46

#400F46 is a dark, moderate purple. Relative luminance 0.019; OKLCH L 27.9% C 0.106 H 323.2°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#400F46
RGBrgb(64, 15, 70)
HSLhsl(293, 65%, 17%)
HSVhsv(293, 79%, 27%)
CMYKcmyk(8.6%, 78.6%, 0%, 72.5%)
CIE-LABlab(14.81, 31.79, -22.88)
CIE-LCHlch(14.81, 39.17, 324.25°)
OKLaboklab(27.95% 0.0852 -0.0638)
OKLCHoklch(27.95% 0.106 323.2)
XYZxyz(3.3906, 1.8740, 5.9763)
Luminance0.0187 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F46 #15460F
analogous
#250F46 #400F46 #460F31
triadic
#400F46 #46400F #0F4640
tetradic
#400F46 #46250F #15460F #0F3146
square
#400F46 #46250F #15460F #0F3146
split-complementary
#400F46 #31460F #0F4625
monochromatic
#170519 #170519 #400F46 #6E1A78 #9C25AB

Accessibility & contrast

On white

15.27
#400F46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#400F46 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400F46
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F46#FFFFFF#000000##FFFFFF
##400F461.0015.271.3715.27
#FFFFFF15.271.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012248
Deuteranopia (green-blind)
#182745
Tritanopia (blue-blind)
#411929
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #400f46;
/* rgb */ color: rgb(64, 15, 70);
/* oklch */ color: oklch(27.9% 0.106 323.2);
Tailwind
colors: {
  custom: {
    50: '#77537a',
    500: '#400f46',
    950: '#000000',
  },
}
SCSS
$custom: #400f46;
$custom-light: #77537a;
$custom-dark: #000000;
JSON
{
  "hex": "#400f46",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 70
  },
  "hsl": {
    "h": 293.455,
    "s": 64.706,
    "l": 16.667
  },
  "oklch": {
    "l": 0.27946,
    "c": 0.10641,
    "h": 323.2
  },
  "luminance": 0.01874
}

Semantic roles & 50–950 ramp

primary
#400F46
secondary
#398030
accent
#E84052
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090309
muted
#7B787B

Preview Lab

Preview with #400F46

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

Preview Lab → · Contrast checker → · Palette generator →

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