#401442#401442

#401442 is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.3% C 0.095 H 326.0°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#401442
RGBrgb(64, 20, 66)
HSLhsl(297, 53%, 17%)
HSVhsv(297, 70%, 26%)
CMYKcmyk(3%, 69.7%, 0%, 74.1%)
CIE-LABlab(15.40, 28.54, -19.16)
CIE-LCHlch(15.40, 34.38, 326.13°)
OKLaboklab(28.29% 0.0785 -0.053)
OKLCHoklch(28.29% 0.095 326)
XYZxyz(3.3478, 1.9839, 5.3598)
Luminance0.0198 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401442 #164214
analogous
#291442 #401442 #42142D
triadic
#401442 #424014 #144240
tetradic
#401442 #422914 #164214 #142D42
square
#401442 #422914 #164214 #142D42
split-complementary
#401442 #2D4214 #144229
monochromatic
#170717 #170717 #401442 #6E2271 #9B30A0

Accessibility & contrast

On white

15.03
#401442 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#401442 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401442
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401442#FFFFFF#000000##FFFFFF
##4014421.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2343
Deuteranopia (green-blind)
#1D2841
Tritanopia (blue-blind)
#421A28
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #401442;
/* rgb */ color: rgb(64, 20, 66);
/* oklch */ color: oklch(28.3% 0.095 326.0);
Tailwind
colors: {
  custom: {
    50: '#775576',
    500: '#401442',
    950: '#000000',
  },
}
SCSS
$custom: #401442;
$custom-light: #775576;
$custom-dark: #000000;
JSON
{
  "hex": "#401442",
  "rgb": {
    "r": 64,
    "g": 20,
    "b": 66
  },
  "hsl": {
    "h": 297.391,
    "s": 53.488,
    "l": 16.863
  },
  "oklch": {
    "l": 0.28287,
    "c": 0.09472,
    "h": 326
  },
  "luminance": 0.01984
}

Semantic roles & 50–950 ramp

primary
#401442
secondary
#3B7A38
accent
#DD4B51
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#090308
muted
#7B787B

Preview Lab

Preview with #401442

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

Preview Lab → · Contrast checker → · Palette generator →

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