#401055#401055

#401055 is a dark, vivid purple. Relative luminance 0.021; OKLCH L 29.2% C 0.120 H 313.1°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#401055
RGBrgb(64, 16, 85)
HSLhsl(282, 68%, 20%)
HSVhsv(282, 81%, 33%)
CMYKcmyk(24.7%, 81.2%, 0%, 66.7%)
CIE-LABlab(16.09, 34.72, -31.13)
CIE-LCHlch(16.09, 46.63, 318.12°)
OKLaboklab(29.21% 0.0823 -0.088)
OKLCHoklch(29.21% 0.12 313.1)
XYZxyz(3.9390, 2.1166, 8.7936)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401055 #255510
analogous
#1D1055 #401055 #551048
triadic
#401055 #554010 #105540
tetradic
#401055 #551D10 #255510 #104855
square
#401055 #551D10 #255510 #104855
split-complementary
#401055 #485510 #10551D
monochromatic
#13051A #190621 #401055 #671A89 #8E23BC

Accessibility & contrast

On white

14.76
#401055 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#401055 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401055
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401055#FFFFFF#000000##FFFFFF
##4010551.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002657
Deuteranopia (green-blind)
#092954
Tritanopia (blue-blind)
#3E2032
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #401055;
/* rgb */ color: rgb(64, 16, 85);
/* oklch */ color: oklch(29.2% 0.120 313.1);
Tailwind
colors: {
  custom: {
    50: '#785485',
    500: '#401055',
    950: '#000000',
  },
}
SCSS
$custom: #401055;
$custom-light: #785485;
$custom-dark: #000000;
JSON
{
  "hex": "#401055",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 85
  },
  "hsl": {
    "h": 281.739,
    "s": 68.317,
    "l": 19.804
  },
  "oklch": {
    "l": 0.29211,
    "c": 0.12049,
    "h": 313.1
  },
  "luminance": 0.02116
}

Semantic roles & 50–950 ramp

primary
#401055
secondary
#4E8F32
accent
#EB3D72
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401055

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

Preview Lab → · Contrast checker → · Palette generator →

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