#400841#400841

#400841 is a dark, moderate purple. Relative luminance 0.016; OKLCH L 26.9% C 0.110 H 327.3°. Best body text is #FFFFFF at 15.80:1 contrast (WCAG AA passes).

Color values

HEX#400841
RGBrgb(64, 8, 65)
HSLhsl(299, 78%, 14%)
HSVhsv(299, 88%, 25%)
CMYKcmyk(1.5%, 87.7%, 0%, 74.5%)
CIE-LABlab(13.50, 33.52, -21.47)
CIE-LCHlch(13.50, 39.80, 327.37°)
OKLaboklab(26.9% 0.093 -0.0596)
OKLCHoklch(26.9% 0.11 327.3)
XYZxyz(3.1553, 1.6455, 5.1514)
Luminance0.0164 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400841 #094108
analogous
#240841 #400841 #410826
triadic
#400841 #414008 #084140
tetradic
#400841 #412408 #094108 #082641
square
#400841 #412408 #094108 #082641
split-complementary
#400841 #264108 #084124
monochromatic
#1B031B #1B031B #400841 #760F77 #AB15AE

Accessibility & contrast

On white

15.80
#400841 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#400841 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400841
15.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400841#FFFFFF#000000##FFFFFF
##4008411.0015.801.3315.80
#FFFFFF15.801.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E42
Deuteranopia (green-blind)
#182540
Tritanopia (blue-blind)
#421224
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #400841;
/* rgb */ color: rgb(64, 8, 65);
/* oklch */ color: oklch(26.9% 0.110 327.3);
Tailwind
colors: {
  custom: {
    50: '#775076',
    500: '#400841',
    950: '#000000',
  },
}
SCSS
$custom: #400841;
$custom-light: #775076;
$custom-dark: #000000;
JSON
{
  "hex": "#400841",
  "rgb": {
    "r": 64,
    "g": 8,
    "b": 65
  },
  "hsl": {
    "h": 298.947,
    "s": 78.082,
    "l": 14.314
  },
  "oklch": {
    "l": 0.26902,
    "c": 0.11046,
    "h": 327.3
  },
  "luminance": 0.01645
}

Semantic roles & 50–950 ramp

primary
#400841
secondary
#277F25
accent
#F53337
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #400841

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

Preview Lab → · Contrast checker → · Palette generator →

#400841 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva