#401351#401351

#401351 is a dark, moderate purple. Relative luminance 0.021; OKLCH L 29.2% C 0.112 H 315.1°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#401351
RGBrgb(64, 19, 81)
HSLhsl(284, 62%, 20%)
HSVhsv(284, 77%, 32%)
CMYKcmyk(21%, 76.5%, 0%, 68.2%)
CIE-LABlab(16.26, 32.42, -28.14)
CIE-LCHlch(16.26, 42.93, 319.04°)
OKLaboklab(29.23% 0.0795 -0.0792)
OKLCHoklch(29.23% 0.112 315.1)
XYZxyz(3.8322, 2.1500, 7.9961)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401351 #245113
analogous
#211351 #401351 #511343
triadic
#401351 #514013 #135140
tetradic
#401351 #512113 #245113 #134351
square
#401351 #512113 #245113 #134351
split-complementary
#401351 #435113 #135121
monochromatic
#140619 #19071F #401351 #671F83 #8E2AB4

Accessibility & contrast

On white

14.69
#401351 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#401351 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401351
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401351#FFFFFF#000000##FFFFFF
##4013511.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002653
Deuteranopia (green-blind)
#112950
Tritanopia (blue-blind)
#3F2030
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #401351;
/* rgb */ color: rgb(64, 19, 81);
/* oklch */ color: oklch(29.2% 0.112 315.1);
Tailwind
colors: {
  custom: {
    50: '#775582',
    500: '#401351',
    950: '#000000',
  },
}
SCSS
$custom: #401351;
$custom-light: #775582;
$custom-dark: #000000;
JSON
{
  "hex": "#401351",
  "rgb": {
    "r": 64,
    "g": 19,
    "b": 81
  },
  "hsl": {
    "h": 283.548,
    "s": 62,
    "l": 19.608
  },
  "oklch": {
    "l": 0.29232,
    "c": 0.11225,
    "h": 315.1
  },
  "luminance": 0.0215
}

Semantic roles & 50–950 ramp

primary
#401351
secondary
#4D8A36
accent
#E5436F
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030A
muted
#7B787C

Preview Lab

Preview with #401351

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

Preview Lab → · Contrast checker → · Palette generator →

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