#401860#401860

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

Color values

HEX#401860
RGBrgb(64, 24, 96)
HSLhsl(273, 60%, 24%)
HSVhsv(273, 75%, 38%)
CMYKcmyk(33.3%, 75%, 0%, 62.4%)
CIE-LABlab(18.31, 33.68, -34.90)
CIE-LCHlch(18.31, 48.50, 313.98°)
OKLaboklab(31.07% 0.0715 -0.0991)
OKLCHoklch(31.07% 0.122 305.8)
XYZxyz(4.5518, 2.5878, 11.3238)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401860 #386018
analogous
#1C1860 #401860 #60185C
triadic
#401860 #604018 #186040
tetradic
#401860 #601C18 #386018 #185C60
square
#401860 #601C18 #386018 #185C60
split-complementary
#401860 #5C6018 #18601C
monochromatic
#100618 #1F0C2F #401860 #612491 #8130C2

Accessibility & contrast

On white

13.84
#401860 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#401860 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401860
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401860#FFFFFF#000000##FFFFFF
##4018601.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401860;
/* rgb */ color: rgb(64, 24, 96);
/* oklch */ color: oklch(31.1% 0.122 305.8);
Tailwind
colors: {
  custom: {
    50: '#78598e',
    500: '#401860',
    950: '#000000',
  },
}
SCSS
$custom: #401860;
$custom-light: #78598e;
$custom-dark: #000000;
JSON
{
  "hex": "#401860",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 96
  },
  "hsl": {
    "h": 273.333,
    "s": 60,
    "l": 23.529
  },
  "oklch": {
    "l": 0.31071,
    "c": 0.12219,
    "h": 305.8
  },
  "luminance": 0.02588
}

Semantic roles & 50–950 ramp

primary
#401860
secondary
#65963D
accent
#E3458B
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09040C
muted
#7B797D

Preview Lab

Preview with #401860

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

Preview Lab → · Contrast checker → · Palette generator →

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