#401045#401045

#401045 is a dark, moderate purple. Relative luminance 0.019; OKLCH L 28.0% C 0.104 H 323.8°. Best body text is #FFFFFF at 15.24:1 contrast (WCAG AA passes).

Color values

HEX#401045
RGBrgb(64, 16, 69)
HSLhsl(294, 62%, 17%)
HSVhsv(294, 77%, 27%)
CMYKcmyk(7.2%, 76.8%, 0%, 72.9%)
CIE-LABlab(14.90, 31.13, -22.04)
CIE-LCHlch(14.90, 38.14, 324.69°)
OKLaboklab(27.99% 0.084 -0.0614)
OKLCHoklch(27.99% 0.104 323.8)
XYZxyz(3.3737, 1.8904, 5.8163)
Luminance0.0189 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401045 #154510
analogous
#261045 #401045 #451030
triadic
#401045 #454010 #104540
tetradic
#401045 #452610 #154510 #103045
square
#401045 #452610 #154510 #103045
split-complementary
#401045 #304510 #104526
monochromatic
#170619 #170619 #401045 #6E1C77 #9C27A8

Accessibility & contrast

On white

15.24
#401045 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#401045 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401045
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401045#FFFFFF#000000##FFFFFF
##4010451.0015.241.3815.24
#FFFFFF15.241.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042247
Deuteranopia (green-blind)
#192744
Tritanopia (blue-blind)
#411929
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #401045;
/* rgb */ color: rgb(64, 16, 69);
/* oklch */ color: oklch(28.0% 0.104 323.8);
Tailwind
colors: {
  custom: {
    50: '#775379',
    500: '#401045',
    950: '#000000',
  },
}
SCSS
$custom: #401045;
$custom-light: #775379;
$custom-dark: #000000;
JSON
{
  "hex": "#401045",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 69
  },
  "hsl": {
    "h": 294.34,
    "s": 62.353,
    "l": 16.667
  },
  "oklch": {
    "l": 0.27988,
    "c": 0.104,
    "h": 323.8
  },
  "luminance": 0.0189
}

Semantic roles & 50–950 ramp

primary
#401045
secondary
#397F32
accent
#E54252
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090309
muted
#7B787B

Preview Lab

Preview with #401045

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

Preview Lab → · Contrast checker → · Palette generator →

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