#401075#401075

#401075 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.1% C 0.154 H 298.2°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#401075
RGBrgb(64, 16, 117)
HSLhsl(269, 76%, 26%)
HSVhsv(269, 86%, 46%)
CMYKcmyk(45.3%, 86.3%, 0%, 54.1%)
CIE-LABlab(18.99, 42.68, -47.50)
CIE-LCHlch(18.99, 63.86, 311.94°)
OKLaboklab(32.14% 0.0731 -0.1361)
OKLCHoklch(32.14% 0.154 298.2)
XYZxyz(5.5097, 2.7448, 17.0657)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401075 #457510
analogous
#101275 #401075 #721075
triadic
#401075 #754010 #107540
tetradic
#401075 #751012 #457510 #107572
square
#401075 #751012 #457510 #107572
split-complementary
#401075 #757210 #127510
monochromatic
#0F041B #23093F #401075 #5D17AB #7B1FE0

Accessibility & contrast

On white

13.56
#401075 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401075
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401075#FFFFFF#000000##FFFFFF
##4010751.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E78
Deuteranopia (green-blind)
#002D73
Tritanopia (blue-blind)
#322E44
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #401075;
/* rgb */ color: rgb(64, 16, 117);
/* oklch */ color: oklch(32.1% 0.154 298.2);
Tailwind
colors: {
  custom: {
    50: '#7b569e',
    500: '#401075',
    950: '#000000',
  },
}
SCSS
$custom: #401075;
$custom-light: #7b569e;
$custom-dark: #000000;
JSON
{
  "hex": "#401075",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 117
  },
  "hsl": {
    "h": 268.515,
    "s": 75.94,
    "l": 26.078
  },
  "oklch": {
    "l": 0.32138,
    "c": 0.15443,
    "h": 298.2
  },
  "luminance": 0.02745
}

Semantic roles & 50–950 ramp

primary
#401075
secondary
#73AC35
accent
#F33599
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #401075

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

Preview Lab → · Contrast checker → · Palette generator →

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