#401662#401662

#401662 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.127 H 305.2°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#401662
RGBrgb(64, 22, 98)
HSLhsl(273, 63%, 24%)
HSVhsv(273, 78%, 38%)
CMYKcmyk(34.7%, 77.6%, 0%, 61.6%)
CIE-LABlab(18.12, 35.20, -36.52)
CIE-LCHlch(18.12, 50.72, 313.94°)
OKLaboklab(30.99% 0.0734 -0.1039)
OKLCHoklch(30.99% 0.127 305.2)
XYZxyz(4.6054, 2.5457, 11.8017)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401662 #386216
analogous
#1A1662 #401662 #62165E
triadic
#401662 #624016 #166240
tetradic
#401662 #621A16 #386216 #165E62
square
#401662 #621A16 #386216 #165E62
split-complementary
#401662 #5E6216 #16621A
monochromatic
#100619 #1F0B30 #401662 #612194 #812CC6

Accessibility & contrast

On white

13.91
#401662 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401662
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401662#FFFFFF#000000##FFFFFF
##4016621.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401662;
/* rgb */ color: rgb(64, 22, 98);
/* oklch */ color: oklch(31.0% 0.127 305.2);
Tailwind
colors: {
  custom: {
    50: '#79588f',
    500: '#401662',
    950: '#000000',
  },
}
SCSS
$custom: #401662;
$custom-light: #79588f;
$custom-dark: #000000;
JSON
{
  "hex": "#401662",
  "rgb": {
    "r": 64,
    "g": 22,
    "b": 98
  },
  "hsl": {
    "h": 273.158,
    "s": 63.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.3099,
    "c": 0.12716,
    "h": 305.2
  },
  "luminance": 0.02546
}

Semantic roles & 50–950 ramp

primary
#401662
secondary
#65993B
accent
#E6418B
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #401662

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

Preview Lab → · Contrast checker → · Palette generator →

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