#401052#401052

#401052 is a dark, moderate purple. Relative luminance 0.021; OKLCH L 29.0% C 0.117 H 314.9°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#401052
RGBrgb(64, 16, 82)
HSLhsl(284, 67%, 19%)
HSVhsv(284, 80%, 32%)
CMYKcmyk(22%, 80.5%, 0%, 67.8%)
CIE-LABlab(15.85, 34.02, -29.47)
CIE-LCHlch(15.85, 45.01, 319.10°)
OKLaboklab(28.97% 0.0828 -0.0831)
OKLCHoklch(28.97% 0.117 314.9)
XYZxyz(3.8224, 2.0699, 8.1792)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401052 #225210
analogous
#1F1052 #401052 #521043
triadic
#401052 #524010 #105240
tetradic
#401052 #521F10 #225210 #104352
square
#401052 #521F10 #225210 #104352
split-complementary
#401052 #435210 #10521F
monochromatic
#14051A #18061F #401052 #681A85 #9024B8

Accessibility & contrast

On white

14.85
#401052 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401052
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401052#FFFFFF#000000##FFFFFF
##4010521.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002554
Deuteranopia (green-blind)
#0D2951
Tritanopia (blue-blind)
#3E1E30
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #401052;
/* rgb */ color: rgb(64, 16, 82);
/* oklch */ color: oklch(29.0% 0.117 314.9);
Tailwind
colors: {
  custom: {
    50: '#785483',
    500: '#401052',
    950: '#000000',
  },
}
SCSS
$custom: #401052;
$custom-light: #785483;
$custom-dark: #000000;
JSON
{
  "hex": "#401052",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 82
  },
  "hsl": {
    "h": 283.636,
    "s": 67.347,
    "l": 19.216
  },
  "oklch": {
    "l": 0.28968,
    "c": 0.11735,
    "h": 314.9
  },
  "luminance": 0.0207
}

Semantic roles & 50–950 ramp

primary
#401052
secondary
#4B8C32
accent
#EA3E6D
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030A
muted
#7B787C

Preview Lab

Preview with #401052

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

Preview Lab → · Contrast checker → · Palette generator →

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