#401372#401372

#401372 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.148 H 298.9°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#401372
RGBrgb(64, 19, 114)
HSLhsl(268, 71%, 26%)
HSVhsv(268, 83%, 45%)
CMYKcmyk(43.9%, 83.3%, 0%, 55.3%)
CIE-LABlab(19.10, 40.73, -45.39)
CIE-LCHlch(19.10, 60.98, 311.90°)
OKLaboklab(32.12% 0.0718 -0.1299)
OKLCHoklch(32.12% 0.148 298.9)
XYZxyz(5.3837, 2.7706, 16.1675)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401372 #457213
analogous
#131572 #401372 #6F1372
triadic
#401372 #724013 #137240
tetradic
#401372 #721315 #457213 #13726F
square
#401372 #721315 #457213 #13726F
split-complementary
#401372 #726F13 #157213
monochromatic
#0F041A #230A3E #401372 #5D1CA6 #7B25DB

Accessibility & contrast

On white

13.51
#401372 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401372
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401372#FFFFFF#000000##FFFFFF
##4013721.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E75
Deuteranopia (green-blind)
#002D70
Tritanopia (blue-blind)
#342E43
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #401372;
/* rgb */ color: rgb(64, 19, 114);
/* oklch */ color: oklch(32.1% 0.148 298.9);
Tailwind
colors: {
  custom: {
    50: '#7b579b',
    500: '#401372',
    950: '#000000',
  },
}
SCSS
$custom: #401372;
$custom-light: #7b579b;
$custom-dark: #000000;
JSON
{
  "hex": "#401372",
  "rgb": {
    "r": 64,
    "g": 19,
    "b": 114
  },
  "hsl": {
    "h": 268.421,
    "s": 71.429,
    "l": 26.078
  },
  "oklch": {
    "l": 0.32123,
    "c": 0.14843,
    "h": 298.9
  },
  "luminance": 0.02771
}

Semantic roles & 50–950 ramp

primary
#401372
secondary
#73A938
accent
#EE3A99
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #401372

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

Preview Lab → · Contrast checker → · Palette generator →

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