#401039#401039

#401039 is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.2% C 0.092 H 334.1°. Best body text is #FFFFFF at 15.54:1 contrast (WCAG AA passes).

Color values

HEX#401039
RGBrgb(64, 16, 57)
HSLhsl(309, 60%, 16%)
HSVhsv(309, 75%, 25%)
CMYKcmyk(0%, 75%, 10.9%, 74.9%)
CIE-LABlab(14.15, 28.72, -14.77)
CIE-LCHlch(14.15, 32.29, 332.78°)
OKLaboklab(27.2% 0.0832 -0.0403)
OKLCHoklch(27.2% 0.092 334.1)
XYZxyz(3.0382, 1.7562, 4.0491)
Luminance0.0176 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401039 #104017
analogous
#2F1040 #401039 #401021
triadic
#401039 #394010 #103940
tetradic
#401039 #402F10 #104017 #102140
square
#401039 #402F10 #104017 #102140
split-complementary
#401039 #214010 #10402F
monochromatic
#180616 #180616 #401039 #711C65 #A22890

Accessibility & contrast

On white

15.54
#401039 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#401039 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401039
15.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401039#FFFFFF#000000##FFFFFF
##4010391.0015.541.3515.54
#FFFFFF15.541.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F1F3A
Deuteranopia (green-blind)
#1F2638
Tritanopia (blue-blind)
#431422
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #401039;
/* rgb */ color: rgb(64, 16, 57);
/* oklch */ color: oklch(27.2% 0.092 334.1);
Tailwind
colors: {
  custom: {
    50: '#77536f',
    500: '#401039',
    950: '#000000',
  },
}
SCSS
$custom: #401039;
$custom-light: #77536f;
$custom-dark: #000000;
JSON
{
  "hex": "#401039",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 57
  },
  "hsl": {
    "h": 308.75,
    "s": 60,
    "l": 15.686
  },
  "oklch": {
    "l": 0.27204,
    "c": 0.09248,
    "h": 334.1
  },
  "luminance": 0.01756
}

Semantic roles & 50–950 ramp

primary
#401039
secondary
#327A3C
accent
#E35C45
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090207
muted
#7B787A

Preview Lab

Preview with #401039

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

Preview Lab → · Contrast checker → · Palette generator →

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