#401145#401145

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

Color values

HEX#401145
RGBrgb(64, 17, 69)
HSLhsl(294, 60%, 17%)
HSVhsv(294, 75%, 27%)
CMYKcmyk(7.2%, 75.4%, 0%, 72.9%)
CIE-LABlab(15.07, 30.66, -21.78)
CIE-LCHlch(15.07, 37.61, 324.61°)
OKLaboklab(28.11% 0.0827 -0.0606)
OKLCHoklch(28.11% 0.103 323.8)
XYZxyz(3.3889, 1.9208, 5.8213)
Luminance0.0192 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401145 #164511
analogous
#261145 #401145 #451130
triadic
#401145 #454011 #114540
tetradic
#401145 #452611 #164511 #113045
square
#401145 #452611 #164511 #113045
split-complementary
#401145 #304511 #114526
monochromatic
#170619 #170619 #401145 #6E1D76 #9B29A7

Accessibility & contrast

On white

15.17
#401145 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401145
15.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401145#FFFFFF#000000##FFFFFF
##4011451.0015.171.3815.17
#FFFFFF15.171.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052247
Deuteranopia (green-blind)
#1A2844
Tritanopia (blue-blind)
#411929
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #401145;
/* rgb */ color: rgb(64, 17, 69);
/* oklch */ color: oklch(28.1% 0.103 323.8);
Tailwind
colors: {
  custom: {
    50: '#775479',
    500: '#401145',
    950: '#000000',
  },
}
SCSS
$custom: #401145;
$custom-light: #775479;
$custom-dark: #000000;
JSON
{
  "hex": "#401145",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 69
  },
  "hsl": {
    "h": 294.231,
    "s": 60.465,
    "l": 16.863
  },
  "oklch": {
    "l": 0.28106,
    "c": 0.10252,
    "h": 323.8
  },
  "luminance": 0.01921
}

Semantic roles & 50–950 ramp

primary
#401145
secondary
#3B7F33
accent
#E44454
background
#F7F4F7
surface
#EDE8ED
border
#C8C4C8
text
#090309
muted
#7B787B

Preview Lab

Preview with #401145

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

Preview Lab → · Contrast checker → · Palette generator →

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