#400D5C#400D5C

#400D5C is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.131 H 309.6°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#400D5C
RGBrgb(64, 13, 92)
HSLhsl(279, 75%, 21%)
HSVhsv(279, 86%, 36%)
CMYKcmyk(30.4%, 85.9%, 0%, 63.9%)
CIE-LABlab(16.26, 37.58, -35.56)
CIE-LCHlch(16.26, 51.74, 316.58°)
OKLaboklab(29.52% 0.0836 -0.101)
OKLCHoklch(29.52% 0.131 309.6)
XYZxyz(4.1897, 2.1506, 10.3175)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400D5C #295C0D
analogous
#180D5C #400D5C #5C0D50
triadic
#400D5C #5C400D #0D5C40
tetradic
#400D5C #5C180D #295C0D #0D505C
square
#400D5C #5C180D #295C0D #0D505C
split-complementary
#400D5C #505C0D #0D5C18
monochromatic
#13041B #1B0526 #400D5C #651592 #8B1CC7

Accessibility & contrast

On white

14.68
#400D5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#400D5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400D5C
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400D5C#FFFFFF#000000##FFFFFF
##400D5C1.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265E
Deuteranopia (green-blind)
#00295A
Tritanopia (blue-blind)
#3C2135
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #400d5c;
/* rgb */ color: rgb(64, 13, 92);
/* oklch */ color: oklch(29.5% 0.131 309.6);
Tailwind
colors: {
  custom: {
    50: '#79538b',
    500: '#400d5c',
    950: '#000000',
  },
}
SCSS
$custom: #400d5c;
$custom-light: #79538b;
$custom-dark: #000000;
JSON
{
  "hex": "#400d5c",
  "rgb": {
    "r": 64,
    "g": 13,
    "b": 92
  },
  "hsl": {
    "h": 278.734,
    "s": 75.238,
    "l": 20.588
  },
  "oklch": {
    "l": 0.29516,
    "c": 0.13112,
    "h": 309.6
  },
  "luminance": 0.02151
}

Semantic roles & 50–950 ramp

primary
#400D5C
secondary
#53962F
accent
#F23679
background
#F7F5F8
surface
#EEE8F0
border
#C9C4CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #400D5C

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

Preview Lab → · Contrast checker → · Palette generator →

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