#400F4C#400F4C

#400F4C is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.4% C 0.112 H 318.9°. Best body text is #FFFFFF at 15.10:1 contrast (WCAG AA passes).

Color values

HEX#400F4C
RGBrgb(64, 15, 76)
HSLhsl(288, 67%, 18%)
HSVhsv(288, 80%, 30%)
CMYKcmyk(15.8%, 80.3%, 0%, 70.2%)
CIE-LABlab(15.24, 33.09, -26.35)
CIE-LCHlch(15.24, 42.30, 321.47°)
OKLaboklab(28.39% 0.0847 -0.0739)
OKLCHoklch(28.39% 0.112 318.9)
XYZxyz(3.5895, 1.9536, 7.0241)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F4C #1B4C0F
analogous
#220F4C #400F4C #4C0F39
triadic
#400F4C #4C400F #0F4C40
tetradic
#400F4C #4C220F #1B4C0F #0F394C
square
#400F4C #4C220F #1B4C0F #0F394C
split-complementary
#400F4C #394C0F #0F4C22
monochromatic
#16051A #16051A #400F4C #6B197F #9623B2

Accessibility & contrast

On white

15.10
#400F4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400F4C
15.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F4C#FFFFFF#000000##FFFFFF
##400F4C1.0015.101.3915.10
#FFFFFF15.101.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234E
Deuteranopia (green-blind)
#13284B
Tritanopia (blue-blind)
#401B2C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #400f4c;
/* rgb */ color: rgb(64, 15, 76);
/* oklch */ color: oklch(28.4% 0.112 318.9);
Tailwind
colors: {
  custom: {
    50: '#77537e',
    500: '#400f4c',
    950: '#000000',
  },
}
SCSS
$custom: #400f4c;
$custom-light: #77537e;
$custom-dark: #000000;
JSON
{
  "hex": "#400f4c",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 76
  },
  "hsl": {
    "h": 288.197,
    "s": 67.033,
    "l": 17.843
  },
  "oklch": {
    "l": 0.28391,
    "c": 0.11245,
    "h": 318.9
  },
  "luminance": 0.01953
}

Semantic roles & 50–950 ramp

primary
#400F4C
secondary
#418631
accent
#EA3E60
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #400F4C

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

Preview Lab → · Contrast checker → · Palette generator →

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