#401960#401960

#401960 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.121 H 305.6°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#401960
RGBrgb(64, 25, 96)
HSLhsl(273, 59%, 24%)
HSVhsv(273, 74%, 38%)
CMYKcmyk(33.3%, 74%, 0%, 62.4%)
CIE-LABlab(18.50, 33.16, -34.60)
CIE-LCHlch(18.50, 47.92, 313.79°)
OKLaboklab(31.2% 0.0703 -0.0982)
OKLCHoklch(31.2% 0.121 305.6)
XYZxyz(4.5728, 2.6298, 11.3308)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401960 #396019
analogous
#1C1960 #401960 #60195C
triadic
#401960 #604019 #196040
tetradic
#401960 #601C19 #396019 #195C60
square
#401960 #601C19 #396019 #195C60
split-complementary
#401960 #5C6019 #19601C
monochromatic
#100618 #200C2F #401960 #602691 #8132C1

Accessibility & contrast

On white

13.76
#401960 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#401960 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401960
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401960#FFFFFF#000000##FFFFFF
##4019601.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C62
Deuteranopia (green-blind)
#022D5E
Tritanopia (blue-blind)
#3A293A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #401960;
/* rgb */ color: rgb(64, 25, 96);
/* oklch */ color: oklch(31.2% 0.121 305.6);
Tailwind
colors: {
  custom: {
    50: '#78598e',
    500: '#401960',
    950: '#000000',
  },
}
SCSS
$custom: #401960;
$custom-light: #78598e;
$custom-dark: #000000;
JSON
{
  "hex": "#401960",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 96
  },
  "hsl": {
    "h": 272.958,
    "s": 58.678,
    "l": 23.725
  },
  "oklch": {
    "l": 0.31202,
    "c": 0.12079,
    "h": 305.6
  },
  "luminance": 0.0263
}

Semantic roles & 50–950 ramp

primary
#401960
secondary
#66963F
accent
#E2468C
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09040C
muted
#7B797D

Preview Lab

Preview with #401960

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

Preview Lab → · Contrast checker → · Palette generator →

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