#401565#401565

#401565 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.132 H 304.0°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#401565
RGBrgb(64, 21, 101)
HSLhsl(272, 66%, 24%)
HSVhsv(272, 79%, 40%)
CMYKcmyk(36.6%, 79.2%, 0%, 60.4%)
CIE-LABlab(18.21, 36.45, -38.36)
CIE-LCHlch(18.21, 52.91, 313.54°)
OKLaboklab(31.13% 0.0737 -0.1092)
OKLCHoklch(31.13% 0.132 304)
XYZxyz(4.7309, 2.5659, 12.5554)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401565 #3A6515
analogous
#181565 #401565 #651562
triadic
#401565 #654015 #156540
tetradic
#401565 #651815 #3A6515 #156265
square
#401565 #651815 #3A6515 #156265
split-complementary
#401565 #626515 #156518
monochromatic
#100519 #200A32 #401565 #602098 #802ACA

Accessibility & contrast

On white

13.88
#401565 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#401565 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401565
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401565#FFFFFF#000000##FFFFFF
##4015651.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C67
Deuteranopia (green-blind)
#002C63
Tritanopia (blue-blind)
#39293C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #401565;
/* rgb */ color: rgb(64, 21, 101);
/* oklch */ color: oklch(31.1% 0.132 304.0);
Tailwind
colors: {
  custom: {
    50: '#795792',
    500: '#401565',
    950: '#000000',
  },
}
SCSS
$custom: #401565;
$custom-light: #795792;
$custom-dark: #000000;
JSON
{
  "hex": "#401565",
  "rgb": {
    "r": 64,
    "g": 21,
    "b": 101
  },
  "hsl": {
    "h": 272.25,
    "s": 65.574,
    "l": 23.922
  },
  "oklch": {
    "l": 0.31134,
    "c": 0.13181,
    "h": 304
  },
  "luminance": 0.02566
}

Semantic roles & 50–950 ramp

primary
#401565
secondary
#679C3A
accent
#E93F8E
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #401565

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

Preview Lab → · Contrast checker → · Palette generator →

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