#401155#401155

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

Color values

HEX#401155
RGBrgb(64, 17, 85)
HSLhsl(281, 67%, 20%)
HSVhsv(281, 80%, 33%)
CMYKcmyk(24.7%, 80%, 0%, 66.7%)
CIE-LABlab(16.24, 34.29, -30.88)
CIE-LCHlch(16.24, 46.14, 317.99°)
OKLaboklab(29.32% 0.0813 -0.0872)
OKLCHoklch(29.32% 0.119 313)
XYZxyz(3.9542, 2.1469, 8.7987)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401155 #265511
analogous
#1E1155 #401155 #551148
triadic
#401155 #554011 #115540
tetradic
#401155 #551E11 #265511 #114855
square
#401155 #551E11 #265511 #114855
split-complementary
#401155 #485511 #11551E
monochromatic
#13051A #1A0722 #401155 #661B88 #8D25BB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##401155#FFFFFF#000000##FFFFFF
##4011551.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)
#002657
Deuteranopia (green-blind)
#0A2954
Tritanopia (blue-blind)
#3E2032
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #401155;
/* rgb */ color: rgb(64, 17, 85);
/* oklch */ color: oklch(29.3% 0.119 313.0);
Tailwind
colors: {
  custom: {
    50: '#785485',
    500: '#401155',
    950: '#000000',
  },
}
SCSS
$custom: #401155;
$custom-light: #785485;
$custom-dark: #000000;
JSON
{
  "hex": "#401155",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 85
  },
  "hsl": {
    "h": 281.471,
    "s": 66.667,
    "l": 20
  },
  "oklch": {
    "l": 0.29319,
    "c": 0.11924,
    "h": 313
  },
  "luminance": 0.02147
}

Semantic roles & 50–950 ramp

primary
#401155
secondary
#508E34
accent
#EA3E73
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401155

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

Preview Lab → · Contrast checker → · Palette generator →

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