#400F54#400F54

#400F54 is a dark, vivid purple. Relative luminance 0.021; OKLCH L 29.0% C 0.121 H 313.8°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#400F54
RGBrgb(64, 15, 84)
HSLhsl(283, 70%, 19%)
HSVhsv(283, 82%, 33%)
CMYKcmyk(23.8%, 82.1%, 0%, 67.1%)
CIE-LABlab(15.86, 34.91, -30.82)
CIE-LCHlch(15.86, 46.56, 318.56°)
OKLaboklab(29.03% 0.0836 -0.087)
OKLCHoklch(29.03% 0.121 313.8)
XYZxyz(3.8851, 2.0719, 8.5810)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F54 #23540F
analogous
#1E0F54 #400F54 #540F46
triadic
#400F54 #54400F #0F5440
tetradic
#400F54 #541E0F #23540F #0F4654
square
#400F54 #541E0F #23540F #0F4654
split-complementary
#400F54 #46540F #0F541E
monochromatic
#14051A #180620 #400F54 #681888 #8F22BC

Accessibility & contrast

On white

14.85
#400F54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400F54
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F54#FFFFFF#000000##FFFFFF
##400F541.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #400f54;
/* rgb */ color: rgb(64, 15, 84);
/* oklch */ color: oklch(29.0% 0.121 313.8);
Tailwind
colors: {
  custom: {
    50: '#785485',
    500: '#400f54',
    950: '#000000',
  },
}
SCSS
$custom: #400f54;
$custom-light: #785485;
$custom-dark: #000000;
JSON
{
  "hex": "#400f54",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 84
  },
  "hsl": {
    "h": 282.609,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.29025,
    "c": 0.12067,
    "h": 313.8
  },
  "luminance": 0.02072
}

Semantic roles & 50–950 ramp

primary
#400F54
secondary
#4C8E31
accent
#ED3B6F
background
#F7F5F8
surface
#EDE8EF
border
#C8C4CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #400F54

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

Preview Lab → · Contrast checker → · Palette generator →

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