#401142#401142

#401142 is a dark, moderate purple. Relative luminance 0.019; OKLCH L 27.9% C 0.100 H 326.1°. Best body text is #FFFFFF at 15.25:1 contrast (WCAG AA passes).

Color values

HEX#401142
RGBrgb(64, 17, 66)
HSLhsl(298, 59%, 16%)
HSVhsv(298, 74%, 26%)
CMYKcmyk(3%, 74.2%, 0%, 74.1%)
CIE-LABlab(14.87, 30.03, -20.00)
CIE-LCHlch(14.87, 36.08, 326.34°)
OKLaboklab(27.9% 0.0826 -0.0554)
OKLCHoklch(27.9% 0.1 326.1)
XYZxyz(3.2981, 1.8844, 5.3432)
Luminance0.0188 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401142 #134211
analogous
#281142 #401142 #42112C
triadic
#401142 #424011 #114240
tetradic
#401142 #422811 #134211 #112C42
square
#401142 #422811 #134211 #112C42
split-complementary
#401142 #2C4211 #114228
monochromatic
#180618 #180618 #401142 #6F1E73 #9E2AA3

Accessibility & contrast

On white

15.25
#401142 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401142
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401142#FFFFFF#000000##FFFFFF
##4011421.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082243
Deuteranopia (green-blind)
#1B2741
Tritanopia (blue-blind)
#421827
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #401142;
/* rgb */ color: rgb(64, 17, 66);
/* oklch */ color: oklch(27.9% 0.100 326.1);
Tailwind
colors: {
  custom: {
    50: '#775476',
    500: '#401142',
    950: '#000000',
  },
}
SCSS
$custom: #401142;
$custom-light: #775476;
$custom-dark: #000000;
JSON
{
  "hex": "#401142",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 66
  },
  "hsl": {
    "h": 297.551,
    "s": 59.036,
    "l": 16.275
  },
  "oklch": {
    "l": 0.279,
    "c": 0.09951,
    "h": 326.1
  },
  "luminance": 0.01884
}

Semantic roles & 50–950 ramp

primary
#401142
secondary
#367C33
accent
#E2464C
background
#F7F4F7
surface
#EDE8ED
border
#C8C4C8
text
#090308
muted
#7B787B

Preview Lab

Preview with #401142

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

Preview Lab → · Contrast checker → · Palette generator →

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