#400E52#400E52

#400E52 is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.8% C 0.120 H 315.2°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#400E52
RGBrgb(64, 14, 82)
HSLhsl(284, 71%, 19%)
HSVhsv(284, 83%, 32%)
CMYKcmyk(22%, 82.9%, 0%, 67.8%)
CIE-LABlab(15.56, 34.86, -29.95)
CIE-LCHlch(15.56, 45.95, 319.33°)
OKLaboklab(28.76% 0.085 -0.0845)
OKLCHoklch(28.76% 0.12 315.2)
XYZxyz(3.7941, 2.0134, 8.1698)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400E52 #20520E
analogous
#1E0E52 #400E52 #520E42
triadic
#400E52 #52400E #0E5240
tetradic
#400E52 #521E0E #20520E #0E4252
square
#400E52 #521E0E #20520E #0E4252
split-complementary
#400E52 #42520E #0E521E
monochromatic
#14041A #17051E #400E52 #691786 #9220BB

Accessibility & contrast

On white

14.97
#400E52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400E52
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400E52#FFFFFF#000000##FFFFFF
##400E521.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002454
Deuteranopia (green-blind)
#0B2851
Tritanopia (blue-blind)
#3F1D2F
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #400e52;
/* rgb */ color: rgb(64, 14, 82);
/* oklch */ color: oklch(28.8% 0.120 315.2);
Tailwind
colors: {
  custom: {
    50: '#785383',
    500: '#400e52',
    950: '#000000',
  },
}
SCSS
$custom: #400e52;
$custom-light: #785383;
$custom-dark: #000000;
JSON
{
  "hex": "#400e52",
  "rgb": {
    "r": 64,
    "g": 14,
    "b": 82
  },
  "hsl": {
    "h": 284.118,
    "s": 70.833,
    "l": 18.824
  },
  "oklch": {
    "l": 0.28761,
    "c": 0.11981,
    "h": 315.2
  },
  "luminance": 0.02013
}

Semantic roles & 50–950 ramp

primary
#400E52
secondary
#488C2F
accent
#EE3A6A
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#09030A
muted
#7B787C

Preview Lab

Preview with #400E52

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

Preview Lab → · Contrast checker → · Palette generator →

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