#400E4F#400E4F

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

Color values

HEX#400E4F
RGBrgb(64, 14, 79)
HSLhsl(286, 70%, 18%)
HSVhsv(286, 82%, 31%)
CMYKcmyk(19%, 82.3%, 0%, 69%)
CIE-LABlab(15.32, 34.18, -28.28)
CIE-LCHlch(15.32, 44.36, 320.40°)
OKLaboklab(28.52% 0.0854 -0.0796)
OKLCHoklch(28.52% 0.117 317)
XYZxyz(3.6825, 1.9687, 7.5816)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400E4F #1D4F0E
analogous
#1F0E4F #400E4F #4F0E3D
triadic
#400E4F #4F400E #0E4F40
tetradic
#400E4F #4F1F0E #1D4F0E #0E3D4F
square
#400E4F #4F1F0E #1D4F0E #0E3D4F
split-complementary
#400E4F #3D4F0E #0E4F1F
monochromatic
#15051A #16051B #400E4F #6A1783 #9420B7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##400E4F#FFFFFF#000000##FFFFFF
##400E4F1.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)
#002351
Deuteranopia (green-blind)
#0F284E
Tritanopia (blue-blind)
#3F1C2E
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #400e4f;
/* rgb */ color: rgb(64, 14, 79);
/* oklch */ color: oklch(28.5% 0.117 317.0);
Tailwind
colors: {
  custom: {
    50: '#785381',
    500: '#400e4f',
    950: '#000000',
  },
}
SCSS
$custom: #400e4f;
$custom-light: #785381;
$custom-dark: #000000;
JSON
{
  "hex": "#400e4f",
  "rgb": {
    "r": 64,
    "g": 14,
    "b": 79
  },
  "hsl": {
    "h": 286.154,
    "s": 69.892,
    "l": 18.235
  },
  "oklch": {
    "l": 0.2852,
    "c": 0.11676,
    "h": 317
  },
  "luminance": 0.01969
}

Semantic roles & 50–950 ramp

primary
#400E4F
secondary
#448A2F
accent
#ED3B64
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #400E4F

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

Preview Lab → · Contrast checker → · Palette generator →

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