#401475#401475

#401475 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.151 H 297.7°. Best body text is #FFFFFF at 13.33:1 contrast (WCAG AA passes).

Color values

HEX#401475
RGBrgb(64, 20, 117)
HSLhsl(267, 71%, 27%)
HSVhsv(267, 83%, 46%)
CMYKcmyk(45.3%, 82.9%, 0%, 54.1%)
CIE-LABlab(19.53, 41.10, -46.61)
CIE-LCHlch(19.53, 62.14, 311.40°)
OKLaboklab(32.51% 0.07 -0.1335)
OKLCHoklch(32.51% 0.151 297.7)
XYZxyz(5.5746, 2.8746, 17.0873)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401475 #497514
analogous
#141975 #401475 #711475
triadic
#401475 #754014 #147540
tetradic
#401475 #751419 #497514 #147571
square
#401475 #751419 #497514 #147571
split-complementary
#401475 #757114 #197514
monochromatic
#0E041A #230B41 #401475 #5D1DA9 #7929DA

Accessibility & contrast

On white

13.33
#401475 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#401475 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401475
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401475#FFFFFF#000000##FFFFFF
##4014751.0013.331.5813.33
#FFFFFF13.331.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003078
Deuteranopia (green-blind)
#002E73
Tritanopia (blue-blind)
#322F45
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #401475;
/* rgb */ color: rgb(64, 20, 117);
/* oklch */ color: oklch(32.5% 0.151 297.7);
Tailwind
colors: {
  custom: {
    50: '#7b589e',
    500: '#401475',
    950: '#000000',
  },
}
SCSS
$custom: #401475;
$custom-light: #7b589e;
$custom-dark: #000000;
JSON
{
  "hex": "#401475",
  "rgb": {
    "r": 64,
    "g": 20,
    "b": 117
  },
  "hsl": {
    "h": 267.216,
    "s": 70.803,
    "l": 26.863
  },
  "oklch": {
    "l": 0.32513,
    "c": 0.15074,
    "h": 297.7
  },
  "luminance": 0.02875
}

Semantic roles & 50–950 ramp

primary
#401475
secondary
#78AB3A
accent
#EE3A9C
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #401475

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

Preview Lab → · Contrast checker → · Palette generator →

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