#401375#401375

#401375 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.4% C 0.152 H 297.8°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#401375
RGBrgb(64, 19, 117)
HSLhsl(268, 72%, 27%)
HSVhsv(268, 84%, 46%)
CMYKcmyk(45.3%, 83.8%, 0%, 54.1%)
CIE-LABlab(19.39, 41.52, -46.85)
CIE-LCHlch(19.39, 62.59, 311.55°)
OKLaboklab(32.41% 0.0708 -0.1342)
OKLCHoklch(32.41% 0.152 297.8)
XYZxyz(5.5573, 2.8400, 17.0816)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401375 #487513
analogous
#131775 #401375 #711375
triadic
#401375 #754013 #137540
tetradic
#401375 #751317 #487513 #137571
square
#401375 #751317 #487513 #137571
split-complementary
#401375 #757113 #177513
monochromatic
#0E041A #230A40 #401375 #5D1CAA #7A27DC

Accessibility & contrast

On white

13.39
#401375 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#401375 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401375
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401375#FFFFFF#000000##FFFFFF
##4013751.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F78
Deuteranopia (green-blind)
#002E73
Tritanopia (blue-blind)
#322F45
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #401375;
/* rgb */ color: rgb(64, 19, 117);
/* oklch */ color: oklch(32.4% 0.152 297.8);
Tailwind
colors: {
  custom: {
    50: '#7b579e',
    500: '#401375',
    950: '#000000',
  },
}
SCSS
$custom: #401375;
$custom-light: #7b579e;
$custom-dark: #000000;
JSON
{
  "hex": "#401375",
  "rgb": {
    "r": 64,
    "g": 19,
    "b": 117
  },
  "hsl": {
    "h": 267.551,
    "s": 72.059,
    "l": 26.667
  },
  "oklch": {
    "l": 0.32414,
    "c": 0.15171,
    "h": 297.8
  },
  "luminance": 0.0284
}

Semantic roles & 50–950 ramp

primary
#401375
secondary
#77AB38
accent
#EF399B
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #401375

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

Preview Lab → · Contrast checker → · Palette generator →

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