#400D50#400D50

#400D50 is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.5% C 0.119 H 316.5°. Best body text is #FFFFFF at 15.09:1 contrast (WCAG AA passes).

Color values

HEX#400D50
RGBrgb(64, 13, 80)
HSLhsl(286, 72%, 18%)
HSVhsv(286, 84%, 31%)
CMYKcmyk(20%, 83.7%, 0%, 68.6%)
CIE-LABlab(15.26, 34.80, -29.06)
CIE-LCHlch(15.26, 45.34, 320.14°)
OKLaboklab(28.5% 0.0863 -0.0819)
OKLCHoklch(28.5% 0.119 316.5)
XYZxyz(3.7060, 1.9572, 7.7704)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400D50 #1D500D
analogous
#1E0D50 #400D50 #500D3E
triadic
#400D50 #50400D #0D5040
tetradic
#400D50 #501E0D #1D500D #0D3E50
square
#400D50 #501E0D #1D500D #0D3E50
split-complementary
#400D50 #3E500D #0D501E
monochromatic
#15041A #16041B #400D50 #6A1685 #941EB9

Accessibility & contrast

On white

15.09
#400D50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#400D50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400D50
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400D50#FFFFFF#000000##FFFFFF
##400D501.0015.091.3915.09
#FFFFFF15.091.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002352
Deuteranopia (green-blind)
#0D284F
Tritanopia (blue-blind)
#3F1C2E
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #400d50;
/* rgb */ color: rgb(64, 13, 80);
/* oklch */ color: oklch(28.5% 0.119 316.5);
Tailwind
colors: {
  custom: {
    50: '#785281',
    500: '#400d50',
    950: '#000000',
  },
}
SCSS
$custom: #400d50;
$custom-light: #785281;
$custom-dark: #000000;
JSON
{
  "hex": "#400d50",
  "rgb": {
    "r": 64,
    "g": 13,
    "b": 80
  },
  "hsl": {
    "h": 285.672,
    "s": 72.043,
    "l": 18.235
  },
  "oklch": {
    "l": 0.28501,
    "c": 0.11896,
    "h": 316.5
  },
  "luminance": 0.01957
}

Semantic roles & 50–950 ramp

primary
#400D50
secondary
#448B2E
accent
#EF3964
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #400D50

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

Preview Lab → · Contrast checker → · Palette generator →

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