#401452#401452

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

Color values

HEX#401452
RGBrgb(64, 20, 82)
HSLhsl(283, 61%, 20%)
HSVhsv(283, 76%, 32%)
CMYKcmyk(22%, 75.6%, 0%, 67.8%)
CIE-LABlab(16.50, 32.17, -28.42)
CIE-LCHlch(16.50, 42.93, 318.54°)
OKLaboklab(29.43% 0.0782 -0.0801)
OKLCHoklch(29.43% 0.112 314.3)
XYZxyz(3.8872, 2.1996, 8.2008)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401452 #265214
analogous
#211452 #401452 #521445
triadic
#401452 #524014 #145240
tetradic
#401452 #522114 #265214 #144552
square
#401452 #522114 #265214 #144552
split-complementary
#401452 #455214 #145221
monochromatic
#130619 #1A0821 #401452 #662083 #8D2CB4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##401452#FFFFFF#000000##FFFFFF
##4014521.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)
#002654
Deuteranopia (green-blind)
#112A51
Tritanopia (blue-blind)
#3E2131
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #401452;
/* rgb */ color: rgb(64, 20, 82);
/* oklch */ color: oklch(29.4% 0.112 314.3);
Tailwind
colors: {
  custom: {
    50: '#775683',
    500: '#401452',
    950: '#000000',
  },
}
SCSS
$custom: #401452;
$custom-light: #775683;
$custom-dark: #000000;
JSON
{
  "hex": "#401452",
  "rgb": {
    "r": 64,
    "g": 20,
    "b": 82
  },
  "hsl": {
    "h": 282.581,
    "s": 60.784,
    "l": 20
  },
  "oklch": {
    "l": 0.29432,
    "c": 0.11191,
    "h": 314.3
  },
  "luminance": 0.02199
}

Semantic roles & 50–950 ramp

primary
#401452
secondary
#508A38
accent
#E44472
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030A
muted
#7B787C

Preview Lab

Preview with #401452

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

Preview Lab → · Contrast checker → · Palette generator →

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