#401651#401651

#401651 is a dark, moderate purple. Relative luminance 0.023; OKLCH L 29.6% C 0.108 H 314.6°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).

Color values

HEX#401651
RGBrgb(64, 22, 81)
HSLhsl(283, 57%, 20%)
HSVhsv(283, 73%, 32%)
CMYKcmyk(21%, 72.8%, 0%, 68.2%)
CIE-LABlab(16.79, 30.93, -27.29)
CIE-LCHlch(16.79, 41.25, 318.58°)
OKLaboklab(29.61% 0.0757 -0.0767)
OKLCHoklch(29.61% 0.108 314.6)
XYZxyz(3.8862, 2.2580, 8.0141)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401651 #275116
analogous
#221651 #401651 #511644
triadic
#401651 #514016 #165140
tetradic
#401651 #512216 #275116 #164451
square
#401651 #512216 #275116 #164451
split-complementary
#401651 #445116 #165122
monochromatic
#130718 #1A0921 #401651 #662381 #8C30B1

Accessibility & contrast

On white

14.47
#401651 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#401651 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401651
14.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401651#FFFFFF#000000##FFFFFF
##4016511.0014.471.4514.47
#FFFFFF14.471.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002753
Deuteranopia (green-blind)
#142B50
Tritanopia (blue-blind)
#3F2131
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #401651;
/* rgb */ color: rgb(64, 22, 81);
/* oklch */ color: oklch(29.6% 0.108 314.6);
Tailwind
colors: {
  custom: {
    50: '#775782',
    500: '#401651',
    950: '#000000',
  },
}
SCSS
$custom: #401651;
$custom-light: #775782;
$custom-dark: #000000;
JSON
{
  "hex": "#401651",
  "rgb": {
    "r": 64,
    "g": 22,
    "b": 81
  },
  "hsl": {
    "h": 282.712,
    "s": 57.282,
    "l": 20.196
  },
  "oklch": {
    "l": 0.29613,
    "c": 0.10782,
    "h": 314.6
  },
  "luminance": 0.02258
}

Semantic roles & 50–950 ramp

primary
#401651
secondary
#51883A
accent
#E14773
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030A
muted
#7B787C

Preview Lab

Preview with #401651

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

Preview Lab → · Contrast checker → · Palette generator →

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