#401173#401173

#401173 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.0% C 0.151 H 298.8°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#401173
RGBrgb(64, 17, 115)
HSLhsl(269, 74%, 26%)
HSVhsv(269, 85%, 45%)
CMYKcmyk(44.3%, 85.2%, 0%, 54.9%)
CIE-LABlab(18.92, 41.79, -46.33)
CIE-LCHlch(18.92, 62.39, 312.05°)
OKLaboklab(32.03% 0.0731 -0.1326)
OKLCHoklch(32.03% 0.151 298.8)
XYZxyz(5.4085, 2.7286, 16.4581)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401173 #447311
analogous
#111373 #401173 #711173
triadic
#401173 #734011 #117340
tetradic
#401173 #731113 #447311 #117371
square
#401173 #731113 #447311 #117371
split-complementary
#401173 #737111 #137311
monochromatic
#0F041B #22093E #401173 #5E19A8 #7B21DE

Accessibility & contrast

On white

13.59
#401173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401173
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401173#FFFFFF#000000##FFFFFF
##4011731.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E76
Deuteranopia (green-blind)
#002D71
Tritanopia (blue-blind)
#332D43
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #401173;
/* rgb */ color: rgb(64, 17, 115);
/* oklch */ color: oklch(32.0% 0.151 298.8);
Tailwind
colors: {
  custom: {
    50: '#7b569c',
    500: '#401173',
    950: '#000000',
  },
}
SCSS
$custom: #401173;
$custom-light: #7b569c;
$custom-dark: #000000;
JSON
{
  "hex": "#401173",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 115
  },
  "hsl": {
    "h": 268.776,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.32029,
    "c": 0.15141,
    "h": 298.8
  },
  "luminance": 0.02729
}

Semantic roles & 50–950 ramp

primary
#401173
secondary
#72AA36
accent
#F13798
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #401173

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

Preview Lab → · Contrast checker → · Palette generator →

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