#401161#401161

#401161 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.132 H 306.6°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#401161
RGBrgb(64, 17, 97)
HSLhsl(275, 70%, 22%)
HSVhsv(275, 82%, 38%)
CMYKcmyk(34%, 82.5%, 0%, 62%)
CIE-LABlab(17.25, 37.21, -37.29)
CIE-LCHlch(17.25, 52.68, 314.94°)
OKLaboklab(30.34% 0.0787 -0.1061)
OKLCHoklch(30.34% 0.132 306.6)
XYZxyz(4.4720, 2.3540, 11.5257)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401161 #326111
analogous
#181161 #401161 #61115A
triadic
#401161 #614011 #116140
tetradic
#401161 #611811 #326111 #115A61
square
#401161 #611811 #326111 #115A61
split-complementary
#401161 #5A6111 #116118
monochromatic
#11051A #1E082D #401161 #621A95 #8523C9

Accessibility & contrast

On white

14.28
#401161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#401161 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401161
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401161#FFFFFF#000000##FFFFFF
##4011611.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002963
Deuteranopia (green-blind)
#002B5F
Tritanopia (blue-blind)
#3A2539
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #401161;
/* rgb */ color: rgb(64, 17, 97);
/* oklch */ color: oklch(30.3% 0.132 306.6);
Tailwind
colors: {
  custom: {
    50: '#79558f',
    500: '#401161',
    950: '#000000',
  },
}
SCSS
$custom: #401161;
$custom-light: #79558f;
$custom-dark: #000000;
JSON
{
  "hex": "#401161",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 97
  },
  "hsl": {
    "h": 275.25,
    "s": 70.175,
    "l": 22.353
  },
  "oklch": {
    "l": 0.30344,
    "c": 0.13208,
    "h": 306.6
  },
  "luminance": 0.02354
}

Semantic roles & 50–950 ramp

primary
#401161
secondary
#5E9934
accent
#ED3B84
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #401161

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

Preview Lab → · Contrast checker → · Palette generator →

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