#401661#401661

#401661 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.126 H 305.7°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#401661
RGBrgb(64, 22, 97)
HSLhsl(274, 63%, 23%)
HSVhsv(274, 77%, 38%)
CMYKcmyk(34%, 77.3%, 0%, 62%)
CIE-LABlab(18.04, 34.94, -36.00)
CIE-LCHlch(18.04, 50.17, 314.14°)
OKLaboklab(30.9% 0.0736 -0.1023)
OKLCHoklch(30.9% 0.126 305.7)
XYZxyz(4.5585, 2.5269, 11.5545)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401661 #376116
analogous
#1A1661 #401661 #61165C
triadic
#401661 #614016 #166140
tetradic
#401661 #611A16 #376116 #165C61
square
#401661 #611A16 #376116 #165C61
split-complementary
#401661 #5C6116 #16611A
monochromatic
#100619 #1F0B2F #401661 #612193 #822DC5

Accessibility & contrast

On white

13.95
#401661 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#401661 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401661
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401661#FFFFFF#000000##FFFFFF
##4016611.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B63
Deuteranopia (green-blind)
#002C5F
Tritanopia (blue-blind)
#3A283A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #401661;
/* rgb */ color: rgb(64, 22, 97);
/* oklch */ color: oklch(30.9% 0.126 305.7);
Tailwind
colors: {
  custom: {
    50: '#79588e',
    500: '#401661',
    950: '#000000',
  },
}
SCSS
$custom: #401661;
$custom-light: #79588e;
$custom-dark: #000000;
JSON
{
  "hex": "#401661",
  "rgb": {
    "r": 64,
    "g": 22,
    "b": 97
  },
  "hsl": {
    "h": 273.6,
    "s": 63.025,
    "l": 23.333
  },
  "oklch": {
    "l": 0.30904,
    "c": 0.12603,
    "h": 305.7
  },
  "luminance": 0.02527
}

Semantic roles & 50–950 ramp

primary
#401661
secondary
#64983B
accent
#E6428A
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #401661

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

Preview Lab → · Contrast checker → · Palette generator →

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