#400F4F#400F4F

#400F4F is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.6% C 0.116 H 316.9°. Best body text is #FFFFFF at 15.01:1 contrast (WCAG AA passes).

Color values

HEX#400F4F
RGBrgb(64, 15, 79)
HSLhsl(286, 68%, 18%)
HSVhsv(286, 81%, 31%)
CMYKcmyk(19%, 81%, 0%, 69%)
CIE-LABlab(15.47, 33.76, -28.04)
CIE-LCHlch(15.47, 43.89, 320.29°)
OKLaboklab(28.62% 0.0844 -0.0789)
OKLCHoklch(28.62% 0.116 316.9)
XYZxyz(3.6962, 1.9963, 7.5862)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F4F #1E4F0F
analogous
#200F4F #400F4F #4F0F3E
triadic
#400F4F #4F400F #0F4F40
tetradic
#400F4F #4F200F #1E4F0F #0F3E4F
square
#400F4F #4F200F #1E4F0F #0F3E4F
split-complementary
#400F4F #3E4F0F #0F4F20
monochromatic
#15051A #16051C #400F4F #6A1982 #9323B6

Accessibility & contrast

On white

15.01
#400F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#400F4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400F4F
15.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F4F#FFFFFF#000000##FFFFFF
##400F4F1.0015.011.4015.01
#FFFFFF15.011.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002451
Deuteranopia (green-blind)
#10284E
Tritanopia (blue-blind)
#3F1D2E
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #400f4f;
/* rgb */ color: rgb(64, 15, 79);
/* oklch */ color: oklch(28.6% 0.116 316.9);
Tailwind
colors: {
  custom: {
    50: '#785381',
    500: '#400f4f',
    950: '#000000',
  },
}
SCSS
$custom: #400f4f;
$custom-light: #785381;
$custom-dark: #000000;
JSON
{
  "hex": "#400f4f",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 79
  },
  "hsl": {
    "h": 285.938,
    "s": 68.085,
    "l": 18.431
  },
  "oklch": {
    "l": 0.28623,
    "c": 0.11551,
    "h": 316.9
  },
  "luminance": 0.01996
}

Semantic roles & 50–950 ramp

primary
#400F4F
secondary
#458931
accent
#EB3D66
background
#F7F4F7
surface
#EDE8EE
border
#C8C4C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #400F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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