#401967#401967

#401967 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.8% C 0.129 H 302.3°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#401967
RGBrgb(64, 25, 103)
HSLhsl(270, 61%, 25%)
HSVhsv(270, 76%, 40%)
CMYKcmyk(37.9%, 75.7%, 0%, 59.6%)
CIE-LABlab(19.07, 35.03, -38.27)
CIE-LCHlch(19.07, 51.88, 312.47°)
OKLaboklab(31.8% 0.0691 -0.109)
OKLCHoklch(31.8% 0.129 302.3)
XYZxyz(4.9096, 2.7645, 13.1043)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401967 #406719
analogous
#191967 #401967 #671967
triadic
#401967 #674019 #196740
tetradic
#401967 #671919 #406719 #196767
square
#401967 #671919 #406719 #196767
split-complementary
#401967 #676719 #196719
monochromatic
#0F0619 #210D36 #401967 #5F2598 #7D31C9

Accessibility & contrast

On white

13.52
#401967 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#401967 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401967
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401967#FFFFFF#000000##FFFFFF
##4019671.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E69
Deuteranopia (green-blind)
#002E65
Tritanopia (blue-blind)
#382C3E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #401967;
/* rgb */ color: rgb(64, 25, 103);
/* oklch */ color: oklch(31.8% 0.129 302.3);
Tailwind
colors: {
  custom: {
    50: '#795a93',
    500: '#401967',
    950: '#000000',
  },
}
SCSS
$custom: #401967;
$custom-light: #795a93;
$custom-dark: #000000;
JSON
{
  "hex": "#401967",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 103
  },
  "hsl": {
    "h": 270,
    "s": 60.938,
    "l": 25.098
  },
  "oklch": {
    "l": 0.31797,
    "c": 0.12906,
    "h": 302.3
  },
  "luminance": 0.02765
}

Semantic roles & 50–950 ramp

primary
#401967
secondary
#6E9D3F
accent
#E44494
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09040D
muted
#7B797E

Preview Lab

Preview with #401967

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

Preview Lab → · Contrast checker → · Palette generator →

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