#401241#401241

#401241 is a dark, moderate purple. Relative luminance 0.019; OKLCH L 28.0% C 0.097 H 326.9°. Best body text is #FFFFFF at 15.21:1 contrast (WCAG AA passes).

Color values

HEX#401241
RGBrgb(64, 18, 65)
HSLhsl(299, 57%, 16%)
HSVhsv(299, 72%, 25%)
CMYKcmyk(1.5%, 72.3%, 0%, 74.5%)
CIE-LABlab(14.98, 29.34, -19.13)
CIE-LCHlch(14.98, 35.02, 326.90°)
OKLaboklab(27.96% 0.0812 -0.0529)
OKLCHoklch(27.96% 0.097 326.9)
XYZxyz(3.2847, 1.9045, 5.1946)
Luminance0.0190 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401241 #134112
analogous
#291241 #401241 #41122B
triadic
#401241 #414012 #124140
tetradic
#401241 #412912 #134112 #122B41
square
#401241 #412912 #134112 #122B41
split-complementary
#401241 #2B4112 #124129
monochromatic
#180718 #180718 #401241 #6F1F71 #9E2DA1

Accessibility & contrast

On white

15.21
#401241 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#401241 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401241
15.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401241#FFFFFF#000000##FFFFFF
##4012411.0015.211.3815.21
#FFFFFF15.211.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2242
Deuteranopia (green-blind)
#1D2840
Tritanopia (blue-blind)
#421827
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #401241;
/* rgb */ color: rgb(64, 18, 65);
/* oklch */ color: oklch(28.0% 0.097 326.9);
Tailwind
colors: {
  custom: {
    50: '#775476',
    500: '#401241',
    950: '#000000',
  },
}
SCSS
$custom: #401241;
$custom-light: #775476;
$custom-dark: #000000;
JSON
{
  "hex": "#401241",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 65
  },
  "hsl": {
    "h": 298.723,
    "s": 56.627,
    "l": 16.275
  },
  "oklch": {
    "l": 0.27959,
    "c": 0.09695,
    "h": 326.9
  },
  "luminance": 0.01904
}

Semantic roles & 50–950 ramp

primary
#401241
secondary
#367A35
accent
#E0484B
background
#F7F5F7
surface
#EDE8ED
border
#C8C4C8
text
#090308
muted
#7B787B

Preview Lab

Preview with #401241

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

Preview Lab → · Contrast checker → · Palette generator →

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