#401152#401152

#401152 is a dark, moderate purple. Relative luminance 0.021; OKLCH L 29.1% C 0.116 H 314.8°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#401152
RGBrgb(64, 17, 82)
HSLhsl(283, 66%, 19%)
HSVhsv(283, 79%, 32%)
CMYKcmyk(22%, 79.3%, 0%, 67.8%)
CIE-LABlab(16.00, 33.58, -29.22)
CIE-LCHlch(16.00, 44.52, 318.97°)
OKLaboklab(29.08% 0.0817 -0.0824)
OKLCHoklch(29.08% 0.116 314.8)
XYZxyz(3.8375, 2.1002, 8.1842)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401152 #235211
analogous
#201152 #401152 #521144
triadic
#401152 #524011 #115240
tetradic
#401152 #522011 #235211 #114452
square
#401152 #522011 #235211 #114452
split-complementary
#401152 #445211 #115220
monochromatic
#140519 #18061F #401152 #681C85 #8F26B7

Accessibility & contrast

On white

14.79
#401152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#401152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401152
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401152#FFFFFF#000000##FFFFFF
##4011521.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002554
Deuteranopia (green-blind)
#0E2951
Tritanopia (blue-blind)
#3E1F30
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #401152;
/* rgb */ color: rgb(64, 17, 82);
/* oklch */ color: oklch(29.1% 0.116 314.8);
Tailwind
colors: {
  custom: {
    50: '#785483',
    500: '#401152',
    950: '#000000',
  },
}
SCSS
$custom: #401152;
$custom-light: #785483;
$custom-dark: #000000;
JSON
{
  "hex": "#401152",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 82
  },
  "hsl": {
    "h": 283.385,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.29078,
    "c": 0.11605,
    "h": 314.8
  },
  "luminance": 0.021
}

Semantic roles & 50–950 ramp

primary
#401152
secondary
#4C8B34
accent
#E93F6E
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030A
muted
#7B787C

Preview Lab

Preview with #401152

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

Preview Lab → · Contrast checker → · Palette generator →

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