#401654#401654

#401654 is a dark, moderate purple. Relative luminance 0.023; OKLCH L 29.8% C 0.111 H 312.8°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#401654
RGBrgb(64, 22, 84)
HSLhsl(281, 58%, 21%)
HSVhsv(281, 74%, 33%)
CMYKcmyk(23.8%, 73.8%, 0%, 67.1%)
CIE-LABlab(17.01, 31.66, -28.97)
CIE-LCHlch(17.01, 42.91, 317.54°)
OKLaboklab(29.84% 0.0755 -0.0817)
OKLCHoklch(29.84% 0.111 312.8)
XYZxyz(4.0012, 2.3040, 8.6197)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401654 #2A5416
analogous
#211654 #401654 #541649
triadic
#401654 #544016 #165440
tetradic
#401654 #542116 #2A5416 #164954
square
#401654 #542116 #2A5416 #164954
split-complementary
#401654 #495416 #165421
monochromatic
#120618 #1B0924 #401654 #652384 #8A2FB5

Accessibility & contrast

On white

14.38
#401654 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#401654 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401654
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401654#FFFFFF#000000##FFFFFF
##4016541.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002856
Deuteranopia (green-blind)
#112B53
Tritanopia (blue-blind)
#3E2333
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #401654;
/* rgb */ color: rgb(64, 22, 84);
/* oklch */ color: oklch(29.8% 0.111 312.8);
Tailwind
colors: {
  custom: {
    50: '#775784',
    500: '#401654',
    950: '#000000',
  },
}
SCSS
$custom: #401654;
$custom-light: #775784;
$custom-dark: #000000;
JSON
{
  "hex": "#401654",
  "rgb": {
    "r": 64,
    "g": 22,
    "b": 84
  },
  "hsl": {
    "h": 280.645,
    "s": 58.491,
    "l": 20.784
  },
  "oklch": {
    "l": 0.29842,
    "c": 0.11122,
    "h": 312.8
  },
  "luminance": 0.02304
}

Semantic roles & 50–950 ramp

primary
#401654
secondary
#558B3A
accent
#E24678
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401654

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

Preview Lab → · Contrast checker → · Palette generator →

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