#401667#401667

#401667 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.133 H 302.9°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#401667
RGBrgb(64, 22, 103)
HSLhsl(271, 65%, 25%)
HSVhsv(271, 79%, 40%)
CMYKcmyk(37.9%, 78.6%, 0%, 59.6%)
CIE-LABlab(18.55, 36.50, -39.12)
CIE-LCHlch(18.55, 53.50, 313.02°)
OKLaboklab(31.43% 0.0722 -0.1115)
OKLCHoklch(31.43% 0.133 302.9)
XYZxyz(4.8489, 2.6431, 13.0840)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401667 #3D6716
analogous
#181667 #401667 #671666
triadic
#401667 #674016 #166740
tetradic
#401667 #671816 #3D6716 #166667
square
#401667 #671816 #3D6716 #166667
split-complementary
#401667 #666716 #166718
monochromatic
#100519 #210B35 #401667 #5F2199 #7F2CCC

Accessibility & contrast

On white

13.74
#401667 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401667
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401667#FFFFFF#000000##FFFFFF
##4016671.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C69
Deuteranopia (green-blind)
#002D65
Tritanopia (blue-blind)
#382A3D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #401667;
/* rgb */ color: rgb(64, 22, 103);
/* oklch */ color: oklch(31.4% 0.133 302.9);
Tailwind
colors: {
  custom: {
    50: '#795893',
    500: '#401667',
    950: '#000000',
  },
}
SCSS
$custom: #401667;
$custom-light: #795893;
$custom-dark: #000000;
JSON
{
  "hex": "#401667",
  "rgb": {
    "r": 64,
    "g": 22,
    "b": 103
  },
  "hsl": {
    "h": 271.111,
    "s": 64.8,
    "l": 24.51
  },
  "oklch": {
    "l": 0.31428,
    "c": 0.13286,
    "h": 302.9
  },
  "luminance": 0.02643
}

Semantic roles & 50–950 ramp

primary
#401667
secondary
#6B9E3B
accent
#E84091
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #401667

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

Preview Lab → · Contrast checker → · Palette generator →

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