#401455#401455

#401455 is a dark, moderate purple. Relative luminance 0.022; OKLCH L 29.7% C 0.115 H 312.5°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#401455
RGBrgb(64, 20, 85)
HSLhsl(281, 62%, 21%)
HSVhsv(281, 76%, 33%)
CMYKcmyk(24.7%, 76.5%, 0%, 66.7%)
CIE-LABlab(16.73, 32.90, -30.09)
CIE-LCHlch(16.73, 44.58, 317.55°)
OKLaboklab(29.67% 0.0778 -0.085)
OKLCHoklch(29.67% 0.115 312.5)
XYZxyz(4.0039, 2.2463, 8.8152)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401455 #295514
analogous
#1F1455 #401455 #551449
triadic
#401455 #554014 #145540
tetradic
#401455 #551F14 #295514 #144955
square
#401455 #551F14 #295514 #144955
split-complementary
#401455 #495514 #14551F
monochromatic
#130619 #1B0823 #401455 #652087 #8B2BB8

Accessibility & contrast

On white

14.49
#401455 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#401455 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401455
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401455#FFFFFF#000000##FFFFFF
##4014551.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002757
Deuteranopia (green-blind)
#0D2A54
Tritanopia (blue-blind)
#3E2233
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #401455;
/* rgb */ color: rgb(64, 20, 85);
/* oklch */ color: oklch(29.7% 0.115 312.5);
Tailwind
colors: {
  custom: {
    50: '#785685',
    500: '#401455',
    950: '#000000',
  },
}
SCSS
$custom: #401455;
$custom-light: #785685;
$custom-dark: #000000;
JSON
{
  "hex": "#401455",
  "rgb": {
    "r": 64,
    "g": 20,
    "b": 85
  },
  "hsl": {
    "h": 280.615,
    "s": 61.905,
    "l": 20.588
  },
  "oklch": {
    "l": 0.29668,
    "c": 0.11523,
    "h": 312.5
  },
  "luminance": 0.02246
}

Semantic roles & 50–950 ramp

primary
#401455
secondary
#538D38
accent
#E54377
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401455

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

Preview Lab → · Contrast checker → · Palette generator →

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