#401972#401972

#401972 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.142 H 297.9°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#401972
RGBrgb(64, 25, 114)
HSLhsl(266, 64%, 27%)
HSVhsv(266, 78%, 45%)
CMYKcmyk(43.9%, 78.1%, 0%, 55.3%)
CIE-LABlab(20.04, 38.01, -43.84)
CIE-LCHlch(20.04, 58.03, 310.93°)
OKLaboklab(32.78% 0.0665 -0.1254)
OKLCHoklch(32.78% 0.142 297.9)
XYZxyz(5.4985, 3.0001, 16.2057)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401972 #4B7219
analogous
#191F72 #401972 #6D1972
triadic
#401972 #724019 #197240
tetradic
#401972 #72191F #4B7219 #19726D
square
#401972 #72191F #4B7219 #19726D
split-complementary
#401972 #726D19 #1F7219
monochromatic
#0E0619 #240E40 #401972 #5C24A4 #7933D2

Accessibility & contrast

On white

13.13
#401972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#401972 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401972
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401972#FFFFFF#000000##FFFFFF
##4019721.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003175
Deuteranopia (green-blind)
#002F70
Tritanopia (blue-blind)
#333044
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #401972;
/* rgb */ color: rgb(64, 25, 114);
/* oklch */ color: oklch(32.8% 0.142 297.9);
Tailwind
colors: {
  custom: {
    50: '#7a5a9b',
    500: '#401972',
    950: '#000000',
  },
}
SCSS
$custom: #401972;
$custom-light: #7a5a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#401972",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 114
  },
  "hsl": {
    "h": 266.292,
    "s": 64.029,
    "l": 27.255
  },
  "oklch": {
    "l": 0.32783,
    "c": 0.14195,
    "h": 297.9
  },
  "luminance": 0.03
}

Semantic roles & 50–950 ramp

primary
#401972
secondary
#7AA740
accent
#E7419E
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401972

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

Preview Lab → · Contrast checker → · Palette generator →

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