#401660#401660

#401660 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.125 H 306.2°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#401660
RGBrgb(64, 22, 96)
HSLhsl(274, 63%, 23%)
HSVhsv(274, 77%, 38%)
CMYKcmyk(33.3%, 77.1%, 0%, 62.4%)
CIE-LABlab(17.96, 34.68, -35.47)
CIE-LCHlch(17.96, 49.61, 314.35°)
OKLaboklab(30.82% 0.0738 -0.1008)
OKLCHoklch(30.82% 0.125 306.2)
XYZxyz(4.5121, 2.5084, 11.3105)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401660 #366016
analogous
#1B1660 #401660 #60165B
triadic
#401660 #604016 #166040
tetradic
#401660 #601B16 #366016 #165B60
square
#401660 #601B16 #366016 #165B60
split-complementary
#401660 #5B6016 #16601B
monochromatic
#110619 #1F0B2E #401660 #612192 #822DC4

Accessibility & contrast

On white

13.99
#401660 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#401660 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401660
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401660#FFFFFF#000000##FFFFFF
##4016601.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B62
Deuteranopia (green-blind)
#002C5E
Tritanopia (blue-blind)
#3A2739
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #401660;
/* rgb */ color: rgb(64, 22, 96);
/* oklch */ color: oklch(30.8% 0.125 306.2);
Tailwind
colors: {
  custom: {
    50: '#78588e',
    500: '#401660',
    950: '#000000',
  },
}
SCSS
$custom: #401660;
$custom-light: #78588e;
$custom-dark: #000000;
JSON
{
  "hex": "#401660",
  "rgb": {
    "r": 64,
    "g": 22,
    "b": 96
  },
  "hsl": {
    "h": 274.054,
    "s": 62.712,
    "l": 23.137
  },
  "oklch": {
    "l": 0.30819,
    "c": 0.12488,
    "h": 306.2
  },
  "luminance": 0.02508
}

Semantic roles & 50–950 ramp

primary
#401660
secondary
#63973B
accent
#E64289
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #401660

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

Preview Lab → · Contrast checker → · Palette generator →

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