#400F48#400F48

#400F48 is a dark, moderate purple. Relative luminance 0.019; OKLCH L 28.1% C 0.108 H 321.7°. Best body text is #FFFFFF at 15.22:1 contrast (WCAG AA passes).

Color values

HEX#400F48
RGBrgb(64, 15, 72)
HSLhsl(292, 66%, 17%)
HSVhsv(292, 79%, 28%)
CMYKcmyk(11.1%, 79.2%, 0%, 71.8%)
CIE-LABlab(14.95, 32.21, -24.05)
CIE-LCHlch(14.95, 40.20, 323.26°)
OKLaboklab(28.09% 0.0851 -0.0672)
OKLCHoklch(28.09% 0.108 321.7)
XYZxyz(3.4547, 1.8997, 6.3143)
Luminance0.0190 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F48 #17480F
analogous
#240F48 #400F48 #480F34
triadic
#400F48 #48400F #0F4840
tetradic
#400F48 #48240F #17480F #0F3448
square
#400F48 #48240F #17480F #0F3448
split-complementary
#400F48 #34480F #0F4824
monochromatic
#170519 #170519 #400F48 #6D1A7B #9A24AD

Accessibility & contrast

On white

15.22
#400F48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#400F48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400F48
15.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F48#FFFFFF#000000##FFFFFF
##400F481.0015.221.3815.22
#FFFFFF15.221.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224A
Deuteranopia (green-blind)
#162747
Tritanopia (blue-blind)
#41192A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #400f48;
/* rgb */ color: rgb(64, 15, 72);
/* oklch */ color: oklch(28.1% 0.108 321.7);
Tailwind
colors: {
  custom: {
    50: '#77537b',
    500: '#400f48',
    950: '#000000',
  },
}
SCSS
$custom: #400f48;
$custom-light: #77537b;
$custom-dark: #000000;
JSON
{
  "hex": "#400f48",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 72
  },
  "hsl": {
    "h": 291.579,
    "s": 65.517,
    "l": 17.059
  },
  "oklch": {
    "l": 0.28091,
    "c": 0.10841,
    "h": 321.7
  },
  "luminance": 0.019
}

Semantic roles & 50–950 ramp

primary
#400F48
secondary
#3C8230
accent
#E83F57
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#090309
muted
#7B787B

Preview Lab

Preview with #400F48

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

Preview Lab → · Contrast checker → · Palette generator →

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