#401451#401451

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

Color values

HEX#401451
RGBrgb(64, 20, 81)
HSLhsl(283, 60%, 20%)
HSVhsv(283, 75%, 32%)
CMYKcmyk(21%, 75.3%, 0%, 68.2%)
CIE-LABlab(16.43, 31.94, -27.86)
CIE-LCHlch(16.43, 42.38, 318.89°)
OKLaboklab(29.35% 0.0783 -0.0784)
OKLCHoklch(29.35% 0.111 314.9)
XYZxyz(3.8495, 2.1845, 8.0019)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401451 #255114
analogous
#221451 #401451 #511443
triadic
#401451 #514014 #145140
tetradic
#401451 #512214 #255114 #144351
square
#401451 #512214 #255114 #144351
split-complementary
#401451 #435114 #145122
monochromatic
#130619 #190820 #401451 #672082 #8E2CB3

Accessibility & contrast

On white

14.62
#401451 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401451
14.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401451#FFFFFF#000000##FFFFFF
##4014511.0014.621.4414.62
#FFFFFF14.621.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002653
Deuteranopia (green-blind)
#122A50
Tritanopia (blue-blind)
#3F2030
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #401451;
/* rgb */ color: rgb(64, 20, 81);
/* oklch */ color: oklch(29.4% 0.111 314.9);
Tailwind
colors: {
  custom: {
    50: '#775682',
    500: '#401451',
    950: '#000000',
  },
}
SCSS
$custom: #401451;
$custom-light: #775682;
$custom-dark: #000000;
JSON
{
  "hex": "#401451",
  "rgb": {
    "r": 64,
    "g": 20,
    "b": 81
  },
  "hsl": {
    "h": 283.279,
    "s": 60.396,
    "l": 19.804
  },
  "oklch": {
    "l": 0.29355,
    "c": 0.11082,
    "h": 314.9
  },
  "luminance": 0.02184
}

Semantic roles & 50–950 ramp

primary
#401451
secondary
#4E8938
accent
#E44471
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030A
muted
#7B787C

Preview Lab

Preview with #401451

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

Preview Lab → · Contrast checker → · Palette generator →

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