#401342#401342

#401342 is a dark, moderate purple. Relative luminance 0.019; OKLCH L 28.2% C 0.096 H 326.0°. Best body text is #FFFFFF at 15.11:1 contrast (WCAG AA passes).

Color values

HEX#401342
RGBrgb(64, 19, 66)
HSLhsl(297, 55%, 17%)
HSVhsv(297, 71%, 26%)
CMYKcmyk(3%, 71.2%, 0%, 74.1%)
CIE-LABlab(15.22, 29.05, -19.45)
CIE-LCHlch(15.22, 34.96, 326.20°)
OKLaboklab(28.15% 0.0799 -0.0538)
OKLCHoklch(28.15% 0.096 326)
XYZxyz(3.3305, 1.9493, 5.3540)
Luminance0.0195 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401342 #154213
analogous
#291342 #401342 #42132D
triadic
#401342 #424013 #134240
tetradic
#401342 #422913 #154213 #132D42
square
#401342 #422913 #154213 #132D42
split-complementary
#401342 #2D4213 #134229
monochromatic
#170718 #170718 #401342 #6E2172 #9C2EA1

Accessibility & contrast

On white

15.11
#401342 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#401342 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401342
15.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401342#FFFFFF#000000##FFFFFF
##4013421.0015.111.3915.11
#FFFFFF15.111.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401342;
/* rgb */ color: rgb(64, 19, 66);
/* oklch */ color: oklch(28.2% 0.096 326.0);
Tailwind
colors: {
  custom: {
    50: '#775576',
    500: '#401342',
    950: '#000000',
  },
}
SCSS
$custom: #401342;
$custom-light: #775576;
$custom-dark: #000000;
JSON
{
  "hex": "#401342",
  "rgb": {
    "r": 64,
    "g": 19,
    "b": 66
  },
  "hsl": {
    "h": 297.447,
    "s": 55.294,
    "l": 16.667
  },
  "oklch": {
    "l": 0.28154,
    "c": 0.09635,
    "h": 326
  },
  "luminance": 0.01949
}

Semantic roles & 50–950 ramp

primary
#401342
secondary
#397B36
accent
#DF4950
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#090308
muted
#7B787B

Preview Lab

Preview with #401342

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

Preview Lab → · Contrast checker → · Palette generator →

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