#401051#401051

#401051 is a dark, moderate purple. Relative luminance 0.021; OKLCH L 28.9% C 0.116 H 315.5°. Best body text is #FFFFFF at 14.88:1 contrast (WCAG AA passes).

Color values

HEX#401051
RGBrgb(64, 16, 81)
HSLhsl(284, 67%, 19%)
HSVhsv(284, 80%, 32%)
CMYKcmyk(21%, 80.2%, 0%, 68.2%)
CIE-LABlab(15.77, 33.79, -28.92)
CIE-LCHlch(15.77, 44.47, 319.44°)
OKLaboklab(28.89% 0.083 -0.0815)
OKLCHoklch(28.89% 0.116 315.5)
XYZxyz(3.7846, 2.0548, 7.9802)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401051 #215110
analogous
#201051 #401051 #511042
triadic
#401051 #514010 #105140
tetradic
#401051 #512010 #215110 #104251
square
#401051 #512010 #215110 #104251
split-complementary
#401051 #425110 #105120
monochromatic
#14051A #18061E #401051 #681A84 #9124B7

Accessibility & contrast

On white

14.88
#401051 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#401051 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401051
14.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401051#FFFFFF#000000##FFFFFF
##4010511.0014.881.4114.88
#FFFFFF14.881.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002553
Deuteranopia (green-blind)
#0E2950
Tritanopia (blue-blind)
#3F1E2F
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #401051;
/* rgb */ color: rgb(64, 16, 81);
/* oklch */ color: oklch(28.9% 0.116 315.5);
Tailwind
colors: {
  custom: {
    50: '#785482',
    500: '#401051',
    950: '#000000',
  },
}
SCSS
$custom: #401051;
$custom-light: #785482;
$custom-dark: #000000;
JSON
{
  "hex": "#401051",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 81
  },
  "hsl": {
    "h": 284.308,
    "s": 67.01,
    "l": 19.02
  },
  "oklch": {
    "l": 0.28888,
    "c": 0.11631,
    "h": 315.5
  },
  "luminance": 0.02055
}

Semantic roles & 50–950 ramp

primary
#401051
secondary
#498B32
accent
#EA3E6B
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030A
muted
#7B787C

Preview Lab

Preview with #401051

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

Preview Lab → · Contrast checker → · Palette generator →

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