#400E53#400E53

#400E53 is a dark, vivid purple. Relative luminance 0.020; OKLCH L 28.8% C 0.121 H 314.6°. Best body text is #FFFFFF at 14.94:1 contrast (WCAG AA passes).

Color values

HEX#400E53
RGBrgb(64, 14, 83)
HSLhsl(283, 71%, 19%)
HSVhsv(283, 83%, 33%)
CMYKcmyk(22.9%, 83.1%, 0%, 67.5%)
CIE-LABlab(15.64, 35.09, -30.50)
CIE-LCHlch(15.64, 46.49, 319.00°)
OKLaboklab(28.84% 0.0848 -0.0861)
OKLCHoklch(28.84% 0.121 314.6)
XYZxyz(3.8325, 2.0287, 8.3716)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400E53 #21530E
analogous
#1E0E53 #400E53 #530E44
triadic
#400E53 #53400E #0E5340
tetradic
#400E53 #531E0E #21530E #0E4453
square
#400E53 #531E0E #21530E #0E4453
split-complementary
#400E53 #44530E #0E531E
monochromatic
#14041A #18051F #400E53 #681787 #9120BC

Accessibility & contrast

On white

14.94
#400E53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400E53
14.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400E53#FFFFFF#000000##FFFFFF
##400E531.0014.941.4114.94
#FFFFFF14.941.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002455
Deuteranopia (green-blind)
#0A2852
Tritanopia (blue-blind)
#3E1E30
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #400e53;
/* rgb */ color: rgb(64, 14, 83);
/* oklch */ color: oklch(28.8% 0.121 314.6);
Tailwind
colors: {
  custom: {
    50: '#785384',
    500: '#400e53',
    950: '#000000',
  },
}
SCSS
$custom: #400e53;
$custom-light: #785384;
$custom-dark: #000000;
JSON
{
  "hex": "#400e53",
  "rgb": {
    "r": 64,
    "g": 14,
    "b": 83
  },
  "hsl": {
    "h": 283.478,
    "s": 71.134,
    "l": 19.02
  },
  "oklch": {
    "l": 0.28843,
    "c": 0.12083,
    "h": 314.6
  },
  "luminance": 0.02029
}

Semantic roles & 50–950 ramp

primary
#400E53
secondary
#498D2F
accent
#EE3A6B
background
#F7F4F8
surface
#EDE8EF
border
#C8C4CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #400E53

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

Preview Lab → · Contrast checker → · Palette generator →

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