#401843#401843

#401843 is a dark, moderate purple. Relative luminance 0.021; OKLCH L 28.9% C 0.089 H 324.8°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#401843
RGBrgb(64, 24, 67)
HSLhsl(296, 47%, 18%)
HSVhsv(296, 64%, 26%)
CMYKcmyk(4.5%, 64.2%, 0%, 73.7%)
CIE-LABlab(16.25, 26.61, -18.52)
CIE-LCHlch(16.25, 32.42, 325.17°)
OKLaboklab(28.92% 0.0726 -0.0512)
OKLCHoklch(28.92% 0.089 324.8)
XYZxyz(3.4540, 2.1487, 5.5419)
Luminance0.0215 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401843 #1B4318
analogous
#2A1843 #401843 #431830
triadic
#401843 #434018 #184340
tetradic
#401843 #432A18 #1B4318 #183043
square
#401843 #432A18 #1B4318 #183043
split-complementary
#401843 #304318 #18432A
monochromatic
#160817 #160817 #401843 #6B2870 #96389D

Accessibility & contrast

On white

14.69
#401843 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#401843 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401843
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401843#FFFFFF#000000##FFFFFF
##4018431.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122544
Deuteranopia (green-blind)
#1F2A42
Tritanopia (blue-blind)
#411E2A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #401843;
/* rgb */ color: rgb(64, 24, 67);
/* oklch */ color: oklch(28.9% 0.089 324.8);
Tailwind
colors: {
  custom: {
    50: '#765777',
    500: '#401843',
    950: '#000000',
  },
}
SCSS
$custom: #401843;
$custom-light: #765777;
$custom-dark: #000000;
JSON
{
  "hex": "#401843",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 67
  },
  "hsl": {
    "h": 295.814,
    "s": 47.253,
    "l": 17.843
  },
  "oklch": {
    "l": 0.28923,
    "c": 0.08884,
    "h": 324.8
  },
  "luminance": 0.02149
}

Semantic roles & 50–950 ramp

primary
#401843
secondary
#417A3D
accent
#D7515A
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#090308
muted
#7B787B

Preview Lab

Preview with #401843

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

Preview Lab → · Contrast checker → · Palette generator →

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