#401352#401352

#401352 is a dark, moderate purple. Relative luminance 0.022; OKLCH L 29.3% C 0.113 H 314.5°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#401352
RGBrgb(64, 19, 82)
HSLhsl(283, 62%, 20%)
HSVhsv(283, 77%, 32%)
CMYKcmyk(22%, 76.8%, 0%, 67.8%)
CIE-LABlab(16.33, 32.66, -28.70)
CIE-LCHlch(16.33, 43.47, 318.69°)
OKLaboklab(29.31% 0.0794 -0.0809)
OKLCHoklch(29.31% 0.113 314.5)
XYZxyz(3.8700, 2.1651, 8.1950)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401352 #255213
analogous
#211352 #401352 #521345
triadic
#401352 #524013 #135240
tetradic
#401352 #522113 #255213 #134552
square
#401352 #522113 #255213 #134552
split-complementary
#401352 #455213 #135221
monochromatic
#130619 #190720 #401352 #671F84 #8E2AB5

Accessibility & contrast

On white

14.65
#401352 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401352
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401352#FFFFFF#000000##FFFFFF
##4013521.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002654
Deuteranopia (green-blind)
#102A51
Tritanopia (blue-blind)
#3E2031
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #401352;
/* rgb */ color: rgb(64, 19, 82);
/* oklch */ color: oklch(29.3% 0.113 314.5);
Tailwind
colors: {
  custom: {
    50: '#775583',
    500: '#401352',
    950: '#000000',
  },
}
SCSS
$custom: #401352;
$custom-light: #775583;
$custom-dark: #000000;
JSON
{
  "hex": "#401352",
  "rgb": {
    "r": 64,
    "g": 19,
    "b": 82
  },
  "hsl": {
    "h": 282.857,
    "s": 62.376,
    "l": 19.804
  },
  "oklch": {
    "l": 0.2931,
    "c": 0.11334,
    "h": 314.5
  },
  "luminance": 0.02165
}

Semantic roles & 50–950 ramp

primary
#401352
secondary
#4E8A36
accent
#E54271
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030A
muted
#7B787C

Preview Lab

Preview with #401352

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

Preview Lab → · Contrast checker → · Palette generator →

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