#400C55#400C55

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

Color values

HEX#400C55
RGBrgb(64, 12, 85)
HSLhsl(283, 75%, 19%)
HSVhsv(283, 86%, 33%)
CMYKcmyk(24.7%, 85.9%, 0%, 66.7%)
CIE-LABlab(15.53, 36.32, -32.02)
CIE-LCHlch(15.53, 48.42, 318.59°)
OKLaboklab(28.82% 0.0863 -0.0906)
OKLCHoklch(28.82% 0.125 313.6)
XYZxyz(3.8852, 2.0089, 8.7757)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C55 #21550C
analogous
#1C0C55 #400C55 #550C46
triadic
#400C55 #55400C #0C5540
tetradic
#400C55 #551C0C #21550C #0C4655
square
#400C55 #551C0C #21550C #0C4655
split-complementary
#400C55 #46550C #0C551C
monochromatic
#14041B #18041F #400C55 #68148B #911BC0

Accessibility & contrast

On white

14.98
#400C55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400C55
14.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C55#FFFFFF#000000##FFFFFF
##400C551.0014.981.4014.98
#FFFFFF14.981.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #400c55;
/* rgb */ color: rgb(64, 12, 85);
/* oklch */ color: oklch(28.8% 0.125 313.6);
Tailwind
colors: {
  custom: {
    50: '#785285',
    500: '#400c55',
    950: '#000000',
  },
}
SCSS
$custom: #400c55;
$custom-light: #785285;
$custom-dark: #000000;
JSON
{
  "hex": "#400c55",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 85
  },
  "hsl": {
    "h": 282.74,
    "s": 75.258,
    "l": 19.02
  },
  "oklch": {
    "l": 0.28822,
    "c": 0.12508,
    "h": 313.6
  },
  "luminance": 0.02009
}

Semantic roles & 50–950 ramp

primary
#400C55
secondary
#49902D
accent
#F2366C
background
#F7F4F8
surface
#EEE7EF
border
#C9C3CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #400C55

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

Preview Lab → · Contrast checker → · Palette generator →

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