#401057#401057

#401057 is a dark, vivid purple. Relative luminance 0.021; OKLCH L 29.4% C 0.123 H 312.0°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#401057
RGBrgb(64, 16, 87)
HSLhsl(281, 69%, 20%)
HSVhsv(281, 82%, 34%)
CMYKcmyk(26.4%, 81.6%, 0%, 65.9%)
CIE-LABlab(16.25, 35.19, -32.22)
CIE-LCHlch(16.25, 47.71, 317.53°)
OKLaboklab(29.38% 0.082 -0.0912)
OKLCHoklch(29.38% 0.123 312)
XYZxyz(4.0196, 2.1488, 9.2180)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401057 #275710
analogous
#1C1057 #401057 #57104B
triadic
#401057 #574010 #105740
tetradic
#401057 #571C10 #275710 #104B57
square
#401057 #571C10 #275710 #104B57
split-complementary
#401057 #4B5710 #10571C
monochromatic
#13051A #1A0623 #401057 #661A8B #8C23BE

Accessibility & contrast

On white

14.69
#401057 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#401057 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401057
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401057#FFFFFF#000000##FFFFFF
##4010571.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002659
Deuteranopia (green-blind)
#052956
Tritanopia (blue-blind)
#3D2133
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #401057;
/* rgb */ color: rgb(64, 16, 87);
/* oklch */ color: oklch(29.4% 0.123 312.0);
Tailwind
colors: {
  custom: {
    50: '#785487',
    500: '#401057',
    950: '#000000',
  },
}
SCSS
$custom: #401057;
$custom-light: #785487;
$custom-dark: #000000;
JSON
{
  "hex": "#401057",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 87
  },
  "hsl": {
    "h": 280.563,
    "s": 68.932,
    "l": 20.196
  },
  "oklch": {
    "l": 0.29377,
    "c": 0.1226,
    "h": 312
  },
  "luminance": 0.02149
}

Semantic roles & 50–950 ramp

primary
#401057
secondary
#519032
accent
#EC3C75
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401057

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

Preview Lab → · Contrast checker → · Palette generator →

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