#400641#400641

#400641 is a dark, moderate purple. Relative luminance 0.016; OKLCH L 26.7% C 0.113 H 327.4°. Best body text is #FFFFFF at 15.90:1 contrast (WCAG AA passes).

Color values

HEX#400641
RGBrgb(64, 6, 65)
HSLhsl(299, 83%, 14%)
HSVhsv(299, 91%, 25%)
CMYKcmyk(1.5%, 90.8%, 0%, 74.5%)
CIE-LABlab(13.24, 34.28, -21.88)
CIE-LCHlch(13.24, 40.67, 327.45°)
OKLaboklab(26.72% 0.0951 -0.0608)
OKLCHoklch(26.72% 0.113 327.4)
XYZxyz(3.1336, 1.6021, 5.1442)
Luminance0.0160 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400641 #074106
analogous
#230641 #400641 #410625
triadic
#400641 #414006 #064140
tetradic
#400641 #412306 #074106 #062541
square
#400641 #412306 #074106 #062541
split-complementary
#400641 #254106 #064123
monochromatic
#1C031C #1C031C #400641 #770B79 #AE10B1

Accessibility & contrast

On white

15.90
#400641 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#400641 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400641
15.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400641#FFFFFF#000000##FFFFFF
##4006411.0015.901.3215.90
#FFFFFF15.901.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D43
Deuteranopia (green-blind)
#172540
Tritanopia (blue-blind)
#421124
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #400641;
/* rgb */ color: rgb(64, 6, 65);
/* oklch */ color: oklch(26.7% 0.113 327.4);
Tailwind
colors: {
  custom: {
    50: '#784f76',
    500: '#400641',
    950: '#000000',
  },
}
SCSS
$custom: #400641;
$custom-light: #784f76;
$custom-dark: #000000;
JSON
{
  "hex": "#400641",
  "rgb": {
    "r": 64,
    "g": 6,
    "b": 65
  },
  "hsl": {
    "h": 298.983,
    "s": 83.099,
    "l": 13.922
  },
  "oklch": {
    "l": 0.26716,
    "c": 0.1129,
    "h": 327.4
  },
  "luminance": 0.01602
}

Semantic roles & 50–950 ramp

primary
#400641
secondary
#248122
accent
#F92E32
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #400641

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

Preview Lab → · Contrast checker → · Palette generator →

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