#400E54#400E54

#400E54 is a dark, vivid purple. Relative luminance 0.020; OKLCH L 28.9% C 0.122 H 314.0°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#400E54
RGBrgb(64, 14, 84)
HSLhsl(283, 71%, 19%)
HSVhsv(283, 83%, 33%)
CMYKcmyk(23.8%, 83.3%, 0%, 67.1%)
CIE-LABlab(15.72, 35.32, -31.05)
CIE-LCHlch(15.72, 47.02, 318.68°)
OKLaboklab(28.93% 0.0846 -0.0877)
OKLCHoklch(28.93% 0.122 314)
XYZxyz(3.8713, 2.0443, 8.5764)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400E54 #22540E
analogous
#1D0E54 #400E54 #540E45
triadic
#400E54 #54400E #0E5440
tetradic
#400E54 #541D0E #22540E #0E4554
square
#400E54 #541D0E #22540E #0E4554
split-complementary
#400E54 #45540E #0E541D
monochromatic
#14041A #180520 #400E54 #681788 #901FBD

Accessibility & contrast

On white

14.91
#400E54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#400E54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400E54
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400E54#FFFFFF#000000##FFFFFF
##400E541.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002556
Deuteranopia (green-blind)
#082853
Tritanopia (blue-blind)
#3E1E31
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #400e54;
/* rgb */ color: rgb(64, 14, 84);
/* oklch */ color: oklch(28.9% 0.122 314.0);
Tailwind
colors: {
  custom: {
    50: '#785385',
    500: '#400e54',
    950: '#000000',
  },
}
SCSS
$custom: #400e54;
$custom-light: #785385;
$custom-dark: #000000;
JSON
{
  "hex": "#400e54",
  "rgb": {
    "r": 64,
    "g": 14,
    "b": 84
  },
  "hsl": {
    "h": 282.857,
    "s": 71.429,
    "l": 19.216
  },
  "oklch": {
    "l": 0.28925,
    "c": 0.12185,
    "h": 314
  },
  "luminance": 0.02044
}

Semantic roles & 50–950 ramp

primary
#400E54
secondary
#4B8E2F
accent
#EE3A6D
background
#F7F4F8
surface
#EDE8EF
border
#C8C4CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #400E54

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

Preview Lab → · Contrast checker → · Palette generator →

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