#401167#401167

#401167 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.139 H 303.8°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#401167
RGBrgb(64, 17, 103)
HSLhsl(273, 72%, 24%)
HSVhsv(273, 83%, 40%)
CMYKcmyk(37.9%, 83.5%, 0%, 59.6%)
CIE-LABlab(17.78, 38.71, -40.37)
CIE-LCHlch(17.78, 55.94, 313.80°)
OKLaboklab(30.89% 0.077 -0.1151)
OKLCHoklch(30.89% 0.139 303.8)
XYZxyz(4.7624, 2.4702, 13.0552)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401167 #386711
analogous
#151167 #401167 #671163
triadic
#401167 #674011 #116740
tetradic
#401167 #671511 #386711 #116367
square
#401167 #671511 #386711 #116367
split-complementary
#401167 #636711 #116715
monochromatic
#10041A #1F0832 #401167 #611A9C #8122D0

Accessibility & contrast

On white

14.06
#401167 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401167
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401167#FFFFFF#000000##FFFFFF
##4011671.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B69
Deuteranopia (green-blind)
#002B65
Tritanopia (blue-blind)
#38283C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #401167;
/* rgb */ color: rgb(64, 17, 103);
/* oklch */ color: oklch(30.9% 0.139 303.8);
Tailwind
colors: {
  custom: {
    50: '#795693',
    500: '#401167',
    950: '#000000',
  },
}
SCSS
$custom: #401167;
$custom-light: #795693;
$custom-dark: #000000;
JSON
{
  "hex": "#401167",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 103
  },
  "hsl": {
    "h": 272.791,
    "s": 71.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.30887,
    "c": 0.13852,
    "h": 303.8
  },
  "luminance": 0.0247
}

Semantic roles & 50–950 ramp

primary
#401167
secondary
#659F35
accent
#EE398B
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#0A030D
muted
#7C787E

Preview Lab

Preview with #401167

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

Preview Lab → · Contrast checker → · Palette generator →

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