#400941#400941

#400941 is a dark, moderate purple. Relative luminance 0.017; OKLCH L 27.0% C 0.109 H 327.3°. Best body text is #FFFFFF at 15.75:1 contrast (WCAG AA passes).

Color values

HEX#400941
RGBrgb(64, 9, 65)
HSLhsl(299, 76%, 15%)
HSVhsv(299, 86%, 25%)
CMYKcmyk(1.5%, 86.2%, 0%, 74.5%)
CIE-LABlab(13.63, 33.15, -21.26)
CIE-LCHlch(13.63, 39.38, 327.32°)
OKLaboklab(26.99% 0.0919 -0.059)
OKLCHoklch(26.99% 0.109 327.3)
XYZxyz(3.1661, 1.6672, 5.1551)
Luminance0.0167 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400941 #0A4109
analogous
#240941 #400941 #410926
triadic
#400941 #414009 #094140
tetradic
#400941 #412409 #0A4109 #092641
square
#400941 #412409 #0A4109 #092641
split-complementary
#400941 #264109 #094124
monochromatic
#1A041B #1A041B #400941 #751077 #AA18AD

Accessibility & contrast

On white

15.75
#400941 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400941
15.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400941#FFFFFF#000000##FFFFFF
##4009411.0015.751.3315.75
#FFFFFF15.751.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #400941;
/* rgb */ color: rgb(64, 9, 65);
/* oklch */ color: oklch(27.0% 0.109 327.3);
Tailwind
colors: {
  custom: {
    50: '#775076',
    500: '#400941',
    950: '#000000',
  },
}
SCSS
$custom: #400941;
$custom-light: #775076;
$custom-dark: #000000;
JSON
{
  "hex": "#400941",
  "rgb": {
    "r": 64,
    "g": 9,
    "b": 65
  },
  "hsl": {
    "h": 298.929,
    "s": 75.676,
    "l": 14.51
  },
  "oklch": {
    "l": 0.26994,
    "c": 0.10926,
    "h": 327.3
  },
  "luminance": 0.01667
}

Semantic roles & 50–950 ramp

primary
#400941
secondary
#297F27
accent
#F23639
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #400941

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

Preview Lab → · Contrast checker → · Palette generator →

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