#400B47#400B47

#400B47 is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.6% C 0.112 H 322.7°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#400B47
RGBrgb(64, 11, 71)
HSLhsl(293, 73%, 16%)
HSVhsv(293, 85%, 28%)
CMYKcmyk(9.9%, 84.5%, 0%, 72.2%)
CIE-LABlab(14.31, 33.62, -24.38)
CIE-LCHlch(14.31, 41.53, 324.06°)
OKLaboklab(27.61% 0.0895 -0.0681)
OKLCHoklch(27.61% 0.112 322.7)
XYZxyz(3.3712, 1.7845, 6.1269)
Luminance0.0178 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400B47 #12470B
analogous
#220B47 #400B47 #470B30
triadic
#400B47 #47400B #0B4740
tetradic
#400B47 #47220B #12470B #0B3047
square
#400B47 #47220B #12470B #0B3047
split-complementary
#400B47 #30470B #0B4722
monochromatic
#18041A #18041A #400B47 #70137C #A01BB1

Accessibility & contrast

On white

15.48
#400B47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#400B47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400B47
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400B47#FFFFFF#000000##FFFFFF
##400B471.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002049
Deuteranopia (green-blind)
#152646
Tritanopia (blue-blind)
#411729
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #400b47;
/* rgb */ color: rgb(64, 11, 71);
/* oklch */ color: oklch(27.6% 0.112 322.7);
Tailwind
colors: {
  custom: {
    50: '#77517a',
    500: '#400b47',
    950: '#000000',
  },
}
SCSS
$custom: #400b47;
$custom-light: #77517a;
$custom-dark: #000000;
JSON
{
  "hex": "#400b47",
  "rgb": {
    "r": 64,
    "g": 11,
    "b": 71
  },
  "hsl": {
    "h": 293,
    "s": 73.171,
    "l": 16.078
  },
  "oklch": {
    "l": 0.27613,
    "c": 0.11249,
    "h": 322.7
  },
  "luminance": 0.01784
}

Semantic roles & 50–950 ramp

primary
#400B47
secondary
#35832A
accent
#F0384D
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090209
muted
#7B787B

Preview Lab

Preview with #400B47

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

Preview Lab → · Contrast checker → · Palette generator →

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