#401354#401354

#401354 is a dark, moderate purple. Relative luminance 0.022; OKLCH L 29.5% C 0.116 H 313.3°. Best body text is #FFFFFF at 14.59:1 contrast (WCAG AA passes).

Color values

HEX#401354
RGBrgb(64, 19, 84)
HSLhsl(282, 63%, 20%)
HSVhsv(282, 77%, 33%)
CMYKcmyk(23.8%, 77.4%, 0%, 67.1%)
CIE-LABlab(16.48, 33.13, -29.81)
CIE-LCHlch(16.48, 44.57, 318.02°)
OKLaboklab(29.47% 0.0792 -0.0841)
OKLCHoklch(29.47% 0.116 313.3)
XYZxyz(3.9472, 2.1959, 8.6017)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401354 #275413
analogous
#1F1354 #401354 #541348
triadic
#401354 #544013 #135440
tetradic
#401354 #541F13 #275413 #134854
square
#401354 #541F13 #275413 #134854
split-complementary
#401354 #485413 #13541F
monochromatic
#130619 #1A0822 #401354 #661E86 #8C2AB8

Accessibility & contrast

On white

14.59
#401354 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#401354 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401354
14.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401354#FFFFFF#000000##FFFFFF
##4013541.0014.591.4414.59
#FFFFFF14.591.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002656
Deuteranopia (green-blind)
#0E2A53
Tritanopia (blue-blind)
#3E2132
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #401354;
/* rgb */ color: rgb(64, 19, 84);
/* oklch */ color: oklch(29.5% 0.116 313.3);
Tailwind
colors: {
  custom: {
    50: '#785584',
    500: '#401354',
    950: '#000000',
  },
}
SCSS
$custom: #401354;
$custom-light: #785584;
$custom-dark: #000000;
JSON
{
  "hex": "#401354",
  "rgb": {
    "r": 64,
    "g": 19,
    "b": 84
  },
  "hsl": {
    "h": 281.538,
    "s": 63.107,
    "l": 20.196
  },
  "oklch": {
    "l": 0.29468,
    "c": 0.11552,
    "h": 313.3
  },
  "luminance": 0.02196
}

Semantic roles & 50–950 ramp

primary
#401354
secondary
#518C36
accent
#E64274
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401354

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

Preview Lab → · Contrast checker → · Palette generator →

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