#400F4D#400F4D

#400F4D is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.5% C 0.113 H 318.2°. Best body text is #FFFFFF at 15.07:1 contrast (WCAG AA passes).

Color values

HEX#400F4D
RGBrgb(64, 15, 77)
HSLhsl(287, 67%, 18%)
HSVhsv(287, 81%, 30%)
CMYKcmyk(16.9%, 80.5%, 0%, 69.8%)
CIE-LABlab(15.32, 33.31, -26.91)
CIE-LCHlch(15.32, 42.83, 321.06°)
OKLaboklab(28.47% 0.0846 -0.0756)
OKLCHoklch(28.47% 0.113 318.2)
XYZxyz(3.6245, 1.9676, 7.2086)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F4D #1C4D0F
analogous
#210F4D #400F4D #4D0F3B
triadic
#400F4D #4D400F #0F4D40
tetradic
#400F4D #4D210F #1C4D0F #0F3B4D
square
#400F4D #4D210F #1C4D0F #0F3B4D
split-complementary
#400F4D #3B4D0F #0F4D21
monochromatic
#15051A #15051A #400F4D #6B1980 #9523B3

Accessibility & contrast

On white

15.07
#400F4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400F4D
15.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F4D#FFFFFF#000000##FFFFFF
##400F4D1.0015.071.3915.07
#FFFFFF15.071.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234F
Deuteranopia (green-blind)
#12284C
Tritanopia (blue-blind)
#401C2D
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #400f4d;
/* rgb */ color: rgb(64, 15, 77);
/* oklch */ color: oklch(28.5% 0.113 318.2);
Tailwind
colors: {
  custom: {
    50: '#77537f',
    500: '#400f4d',
    950: '#000000',
  },
}
SCSS
$custom: #400f4d;
$custom-light: #77537f;
$custom-dark: #000000;
JSON
{
  "hex": "#400f4d",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 77
  },
  "hsl": {
    "h": 287.419,
    "s": 67.391,
    "l": 18.039
  },
  "oklch": {
    "l": 0.28467,
    "c": 0.11346,
    "h": 318.2
  },
  "luminance": 0.01967
}

Semantic roles & 50–950 ramp

primary
#400F4D
secondary
#438731
accent
#EA3E62
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #400F4D

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

Preview Lab → · Contrast checker → · Palette generator →

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