#401046#401046

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

Color values

HEX#401046
RGBrgb(64, 16, 70)
HSLhsl(293, 63%, 17%)
HSVhsv(293, 77%, 27%)
CMYKcmyk(8.6%, 77.1%, 0%, 72.5%)
CIE-LABlab(14.97, 31.34, -22.63)
CIE-LCHlch(14.97, 38.65, 324.16°)
OKLaboklab(28.06% 0.0839 -0.0631)
OKLCHoklch(28.06% 0.105 323.1)
XYZxyz(3.4050, 1.9030, 5.9811)
Luminance0.0190 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401046 #164610
analogous
#251046 #401046 #461031
triadic
#401046 #464010 #104640
tetradic
#401046 #462510 #164610 #103146
square
#401046 #462510 #164610 #103146
split-complementary
#401046 #314610 #104625
monochromatic
#170619 #170619 #401046 #6E1B78 #9B27AA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##401046#FFFFFF#000000##FFFFFF
##4010461.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)
#022248
Deuteranopia (green-blind)
#182745
Tritanopia (blue-blind)
#411929
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #401046;
/* rgb */ color: rgb(64, 16, 70);
/* oklch */ color: oklch(28.1% 0.105 323.1);
Tailwind
colors: {
  custom: {
    50: '#77537a',
    500: '#401046',
    950: '#000000',
  },
}
SCSS
$custom: #401046;
$custom-light: #77537a;
$custom-dark: #000000;
JSON
{
  "hex": "#401046",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 70
  },
  "hsl": {
    "h": 293.333,
    "s": 62.791,
    "l": 16.863
  },
  "oklch": {
    "l": 0.28059,
    "c": 0.105,
    "h": 323.1
  },
  "luminance": 0.01903
}

Semantic roles & 50–950 ramp

primary
#401046
secondary
#3B8032
accent
#E64254
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090309
muted
#7B787B

Preview Lab

Preview with #401046

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

Preview Lab → · Contrast checker → · Palette generator →

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