#401546#401546

#401546 is a dark, moderate purple. Relative luminance 0.021; OKLCH L 28.7% C 0.097 H 322.6°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#401546
RGBrgb(64, 21, 70)
HSLhsl(293, 54%, 18%)
HSVhsv(293, 70%, 27%)
CMYKcmyk(8.6%, 70%, 0%, 72.5%)
CIE-LABlab(15.84, 28.90, -21.24)
CIE-LCHlch(15.84, 35.86, 323.68°)
OKLaboklab(28.69% 0.0773 -0.0591)
OKLCHoklch(28.69% 0.097 322.6)
XYZxyz(3.4879, 2.0687, 6.0087)
Luminance0.0207 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401546 #1B4615
analogous
#271546 #401546 #461533
triadic
#401546 #464015 #154640
tetradic
#401546 #462715 #1B4615 #153346
square
#401546 #462715 #1B4615 #153346
split-complementary
#401546 #334615 #154627
monochromatic
#160718 #160718 #401546 #6B2375 #9631A4

Accessibility & contrast

On white

14.85
#401546 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#401546 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401546
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401546#FFFFFF#000000##FFFFFF
##4015461.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2447
Deuteranopia (green-blind)
#1C2945
Tritanopia (blue-blind)
#411D2B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #401546;
/* rgb */ color: rgb(64, 21, 70);
/* oklch */ color: oklch(28.7% 0.097 322.6);
Tailwind
colors: {
  custom: {
    50: '#77567a',
    500: '#401546',
    950: '#000000',
  },
}
SCSS
$custom: #401546;
$custom-light: #77567a;
$custom-dark: #000000;
JSON
{
  "hex": "#401546",
  "rgb": {
    "r": 64,
    "g": 21,
    "b": 70
  },
  "hsl": {
    "h": 292.653,
    "s": 53.846,
    "l": 17.843
  },
  "oklch": {
    "l": 0.28689,
    "c": 0.09727,
    "h": 322.6
  },
  "luminance": 0.02069
}

Semantic roles & 50–950 ramp

primary
#401546
secondary
#417E39
accent
#DD4B5D
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#090309
muted
#7B787B

Preview Lab

Preview with #401546

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

Preview Lab → · Contrast checker → · Palette generator →

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