#401751#401751

#401751 is a dark, moderate purple. Relative luminance 0.023; OKLCH L 29.7% C 0.106 H 314.4°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#401751
RGBrgb(64, 23, 81)
HSLhsl(282, 56%, 20%)
HSVhsv(282, 72%, 32%)
CMYKcmyk(21%, 71.6%, 0%, 68.2%)
CIE-LABlab(16.97, 30.41, -26.99)
CIE-LCHlch(16.97, 40.66, 318.41°)
OKLaboklab(29.75% 0.0744 -0.0759)
OKLCHoklch(29.75% 0.106 314.4)
XYZxyz(3.9057, 2.2970, 8.0206)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401751 #285117
analogous
#231751 #401751 #511745
triadic
#401751 #514017 #175140
tetradic
#401751 #512317 #285117 #174551
square
#401751 #512317 #285117 #174551
split-complementary
#401751 #455117 #175123
monochromatic
#130718 #1A0921 #401751 #662581 #8B32B0

Accessibility & contrast

On white

14.39
#401751 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401751
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401751#FFFFFF#000000##FFFFFF
##4017511.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002853
Deuteranopia (green-blind)
#152B50
Tritanopia (blue-blind)
#3F2231
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #401751;
/* rgb */ color: rgb(64, 23, 81);
/* oklch */ color: oklch(29.7% 0.106 314.4);
Tailwind
colors: {
  custom: {
    50: '#775782',
    500: '#401751',
    950: '#000000',
  },
}
SCSS
$custom: #401751;
$custom-light: #775782;
$custom-dark: #000000;
JSON
{
  "hex": "#401751",
  "rgb": {
    "r": 64,
    "g": 23,
    "b": 81
  },
  "hsl": {
    "h": 282.414,
    "s": 55.769,
    "l": 20.392
  },
  "oklch": {
    "l": 0.29748,
    "c": 0.10627,
    "h": 314.4
  },
  "luminance": 0.02297
}

Semantic roles & 50–950 ramp

primary
#401751
secondary
#52883C
accent
#DF4975
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030A
muted
#7B787C

Preview Lab

Preview with #401751

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

Preview Lab → · Contrast checker → · Palette generator →

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