#401561#401561

#401561 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.127 H 305.9°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#401561
RGBrgb(64, 21, 97)
HSLhsl(274, 64%, 23%)
HSVhsv(274, 78%, 38%)
CMYKcmyk(34%, 78.4%, 0%, 62%)
CIE-LABlab(17.87, 35.42, -36.27)
CIE-LCHlch(17.87, 50.70, 314.32°)
OKLaboklab(30.78% 0.0746 -0.1031)
OKLCHoklch(30.78% 0.127 305.9)
XYZxyz(4.5397, 2.4894, 11.5483)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401561 #366115
analogous
#1A1561 #401561 #61155C
triadic
#401561 #614015 #156140
tetradic
#401561 #611A15 #366115 #155C61
square
#401561 #611A15 #366115 #155C61
split-complementary
#401561 #5C6115 #15611A
monochromatic
#110519 #1F0A2F #401561 #612093 #822BC6

Accessibility & contrast

On white

14.02
#401561 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#401561 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401561
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401561#FFFFFF#000000##FFFFFF
##4015611.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A63
Deuteranopia (green-blind)
#002C5F
Tritanopia (blue-blind)
#3A273A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #401561;
/* rgb */ color: rgb(64, 21, 97);
/* oklch */ color: oklch(30.8% 0.127 305.9);
Tailwind
colors: {
  custom: {
    50: '#79578e',
    500: '#401561',
    950: '#000000',
  },
}
SCSS
$custom: #401561;
$custom-light: #79578e;
$custom-dark: #000000;
JSON
{
  "hex": "#401561",
  "rgb": {
    "r": 64,
    "g": 21,
    "b": 97
  },
  "hsl": {
    "h": 273.947,
    "s": 64.407,
    "l": 23.137
  },
  "oklch": {
    "l": 0.30784,
    "c": 0.12731,
    "h": 305.9
  },
  "luminance": 0.02489
}

Semantic roles & 50–950 ramp

primary
#401561
secondary
#63983A
accent
#E74089
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #401561

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

Preview Lab → · Contrast checker → · Palette generator →

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