#401148#401148

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

Color values

HEX#401148
RGBrgb(64, 17, 72)
HSLhsl(291, 62%, 17%)
HSVhsv(291, 76%, 28%)
CMYKcmyk(11.1%, 76.4%, 0%, 71.8%)
CIE-LABlab(15.27, 31.31, -23.54)
CIE-LCHlch(15.27, 39.17, 323.07°)
OKLaboklab(28.32% 0.0826 -0.0657)
OKLCHoklch(28.32% 0.106 321.5)
XYZxyz(3.4844, 1.9590, 6.3242)
Luminance0.0196 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401148 #194811
analogous
#251148 #401148 #481134
triadic
#401148 #484011 #114840
tetradic
#401148 #482511 #194811 #113448
square
#401148 #482511 #194811 #113448
split-complementary
#401148 #344811 #114825
monochromatic
#160619 #160619 #401148 #6C1D7A #9828AB

Accessibility & contrast

On white

15.09
#401148 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401148
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401148#FFFFFF#000000##FFFFFF
##4011481.0015.091.3915.09
#FFFFFF15.091.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01234A
Deuteranopia (green-blind)
#182847
Tritanopia (blue-blind)
#411B2B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #401148;
/* rgb */ color: rgb(64, 17, 72);
/* oklch */ color: oklch(28.3% 0.106 321.5);
Tailwind
colors: {
  custom: {
    50: '#77547b',
    500: '#401148',
    950: '#000000',
  },
}
SCSS
$custom: #401148;
$custom-light: #77547b;
$custom-dark: #000000;
JSON
{
  "hex": "#401148",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 72
  },
  "hsl": {
    "h": 291.273,
    "s": 61.798,
    "l": 17.451
  },
  "oklch": {
    "l": 0.28319,
    "c": 0.1056,
    "h": 321.5
  },
  "luminance": 0.01959
}

Semantic roles & 50–950 ramp

primary
#401148
secondary
#3F8233
accent
#E5435A
background
#F7F5F7
surface
#EDE8EE
border
#C8C4C9
text
#090309
muted
#7B787B

Preview Lab

Preview with #401148

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

Preview Lab → · Contrast checker → · Palette generator →

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