#401560#401560

#401560 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.126 H 306.4°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#401560
RGBrgb(64, 21, 96)
HSLhsl(274, 64%, 23%)
HSVhsv(274, 78%, 38%)
CMYKcmyk(33.3%, 78.1%, 0%, 62.4%)
CIE-LABlab(17.79, 35.16, -35.75)
CIE-LCHlch(17.79, 50.14, 314.53°)
OKLaboklab(30.7% 0.0749 -0.1016)
OKLCHoklch(30.7% 0.126 306.4)
XYZxyz(4.4934, 2.4709, 11.3043)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401560 #356015
analogous
#1A1560 #401560 #60155A
triadic
#401560 #604015 #156040
tetradic
#401560 #601A15 #356015 #155A60
square
#401560 #601A15 #356015 #155A60
split-complementary
#401560 #5A6015 #15601A
monochromatic
#110519 #1F0A2E #401560 #612092 #832BC4

Accessibility & contrast

On white

14.05
#401560 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#401560 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401560
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401560#FFFFFF#000000##FFFFFF
##4015601.0014.051.4914.05
#FFFFFF14.051.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A62
Deuteranopia (green-blind)
#002C5E
Tritanopia (blue-blind)
#3A2739
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #401560;
/* rgb */ color: rgb(64, 21, 96);
/* oklch */ color: oklch(30.7% 0.126 306.4);
Tailwind
colors: {
  custom: {
    50: '#78578e',
    500: '#401560',
    950: '#000000',
  },
}
SCSS
$custom: #401560;
$custom-light: #78578e;
$custom-dark: #000000;
JSON
{
  "hex": "#401560",
  "rgb": {
    "r": 64,
    "g": 21,
    "b": 96
  },
  "hsl": {
    "h": 274.4,
    "s": 64.103,
    "l": 22.941
  },
  "oklch": {
    "l": 0.30698,
    "c": 0.12618,
    "h": 306.4
  },
  "luminance": 0.02471
}

Semantic roles & 50–950 ramp

primary
#401560
secondary
#62973A
accent
#E74188
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #401560

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

Preview Lab → · Contrast checker → · Palette generator →

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