#401050#401050

#401050 is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.8% C 0.115 H 316.2°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#401050
RGBrgb(64, 16, 80)
HSLhsl(285, 67%, 19%)
HSVhsv(285, 80%, 31%)
CMYKcmyk(20%, 80%, 0%, 68.6%)
CIE-LABlab(15.70, 33.56, -28.36)
CIE-LCHlch(15.70, 43.94, 319.80°)
OKLaboklab(28.81% 0.0831 -0.0798)
OKLCHoklch(28.81% 0.115 316.2)
XYZxyz(3.7474, 2.0399, 7.7842)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401050 #205010
analogous
#201050 #401050 #501040
triadic
#401050 #504010 #105040
tetradic
#401050 #502010 #205010 #104050
square
#401050 #502010 #205010 #104050
split-complementary
#401050 #405010 #105020
monochromatic
#14051A #17061D #401050 #691A83 #9224B6

Accessibility & contrast

On white

14.91
#401050 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401050
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401050#FFFFFF#000000##FFFFFF
##4010501.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002452
Deuteranopia (green-blind)
#10284F
Tritanopia (blue-blind)
#3F1E2F
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #401050;
/* rgb */ color: rgb(64, 16, 80);
/* oklch */ color: oklch(28.8% 0.115 316.2);
Tailwind
colors: {
  custom: {
    50: '#785481',
    500: '#401050',
    950: '#000000',
  },
}
SCSS
$custom: #401050;
$custom-light: #785481;
$custom-dark: #000000;
JSON
{
  "hex": "#401050",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 80
  },
  "hsl": {
    "h": 285,
    "s": 66.667,
    "l": 18.824
  },
  "oklch": {
    "l": 0.28809,
    "c": 0.11527,
    "h": 316.2
  },
  "luminance": 0.0204
}

Semantic roles & 50–950 ramp

primary
#401050
secondary
#488A32
accent
#EA3E69
background
#F7F5F7
surface
#EDE8EE
border
#C8C4C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #401050

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

Preview Lab → · Contrast checker → · Palette generator →

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