#401140#401140

#401140 is a dark, moderate purple. Relative luminance 0.019; OKLCH L 27.8% C 0.098 H 327.8°. Best body text is #FFFFFF at 15.30:1 contrast (WCAG AA passes).

Color values

HEX#401140
RGBrgb(64, 17, 64)
HSLhsl(300, 58%, 16%)
HSVhsv(300, 73%, 25%)
CMYKcmyk(0%, 73.4%, 0%, 74.9%)
CIE-LABlab(14.74, 29.62, -18.80)
CIE-LCHlch(14.74, 35.08, 327.60°)
OKLaboklab(27.77% 0.0825 -0.0519)
OKLCHoklch(27.77% 0.098 327.8)
XYZxyz(3.2402, 1.8613, 5.0381)
Luminance0.0186 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401140 #114011
analogous
#281140 #401140 #401128
triadic
#401140 #404011 #114040
tetradic
#401140 #402811 #114011 #112840
square
#401140 #402811 #114011 #112840
split-complementary
#401140 #284011 #114028
monochromatic
#180618 #180618 #401140 #701E70 #A12BA1

Accessibility & contrast

On white

15.30
#401140 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#401140 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401140
15.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401140#FFFFFF#000000##FFFFFF
##4011401.0015.301.3715.30
#FFFFFF15.301.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2141
Deuteranopia (green-blind)
#1D273F
Tritanopia (blue-blind)
#421726
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #401140;
/* rgb */ color: rgb(64, 17, 64);
/* oklch */ color: oklch(27.8% 0.098 327.8);
Tailwind
colors: {
  custom: {
    50: '#775375',
    500: '#401140',
    950: '#000000',
  },
}
SCSS
$custom: #401140;
$custom-light: #775375;
$custom-dark: #000000;
JSON
{
  "hex": "#401140",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 64
  },
  "hsl": {
    "h": 300,
    "s": 58.025,
    "l": 15.882
  },
  "oklch": {
    "l": 0.27768,
    "c": 0.09753,
    "h": 327.8
  },
  "luminance": 0.01861
}

Semantic roles & 50–950 ramp

primary
#401140
secondary
#337933
accent
#E14747
background
#F7F4F7
surface
#EDE8ED
border
#C8C4C8
text
#090308
muted
#7B787B

Preview Lab

Preview with #401140

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

Preview Lab → · Contrast checker → · Palette generator →

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