#401665#401665

#401665 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.131 H 303.8°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#401665
RGBrgb(64, 22, 101)
HSLhsl(272, 64%, 24%)
HSVhsv(272, 78%, 40%)
CMYKcmyk(36.6%, 78.2%, 0%, 60.4%)
CIE-LABlab(18.38, 35.98, -38.09)
CIE-LCHlch(18.38, 52.39, 313.37°)
OKLaboklab(31.25% 0.0727 -0.1085)
OKLCHoklch(31.25% 0.131 303.8)
XYZxyz(4.7497, 2.6034, 12.5617)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401665 #3B6516
analogous
#191665 #401665 #651663
triadic
#401665 #654016 #166540
tetradic
#401665 #651916 #3B6516 #166365
square
#401665 #651916 #3B6516 #166365
split-complementary
#401665 #636516 #166519
monochromatic
#100519 #200B33 #401665 #602197 #802CCA

Accessibility & contrast

On white

13.81
#401665 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#401665 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401665
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401665#FFFFFF#000000##FFFFFF
##4016651.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C67
Deuteranopia (green-blind)
#002D63
Tritanopia (blue-blind)
#39293C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #401665;
/* rgb */ color: rgb(64, 22, 101);
/* oklch */ color: oklch(31.3% 0.131 303.8);
Tailwind
colors: {
  custom: {
    50: '#795892',
    500: '#401665',
    950: '#000000',
  },
}
SCSS
$custom: #401665;
$custom-light: #795892;
$custom-dark: #000000;
JSON
{
  "hex": "#401665",
  "rgb": {
    "r": 64,
    "g": 22,
    "b": 101
  },
  "hsl": {
    "h": 271.899,
    "s": 64.228,
    "l": 24.118
  },
  "oklch": {
    "l": 0.31251,
    "c": 0.13058,
    "h": 303.8
  },
  "luminance": 0.02603
}

Semantic roles & 50–950 ramp

primary
#401665
secondary
#689C3B
accent
#E7418F
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #401665

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

Preview Lab → · Contrast checker → · Palette generator →

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