#401154#401154

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

Color values

HEX#401154
RGBrgb(64, 17, 84)
HSLhsl(282, 66%, 20%)
HSVhsv(282, 80%, 33%)
CMYKcmyk(23.8%, 79.8%, 0%, 67.1%)
CIE-LABlab(16.16, 34.05, -30.33)
CIE-LCHlch(16.16, 45.60, 318.31°)
OKLaboklab(29.24% 0.0814 -0.0856)
OKLCHoklch(29.24% 0.118 313.6)
XYZxyz(3.9148, 2.1311, 8.5909)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401154 #255411
analogous
#1F1154 #401154 #541146
triadic
#401154 #544011 #115440
tetradic
#401154 #541F11 #255411 #114654
square
#401154 #541F11 #255411 #114654
split-complementary
#401154 #465411 #11541F
monochromatic
#130519 #190721 #401154 #671B87 #8E26BA

Accessibility & contrast

On white

14.72
#401154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401154
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401154#FFFFFF#000000##FFFFFF
##4011541.0014.721.4314.72
#FFFFFF14.721.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002656
Deuteranopia (green-blind)
#0B2953
Tritanopia (blue-blind)
#3E2031
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #401154;
/* rgb */ color: rgb(64, 17, 84);
/* oklch */ color: oklch(29.2% 0.118 313.6);
Tailwind
colors: {
  custom: {
    50: '#785485',
    500: '#401154',
    950: '#000000',
  },
}
SCSS
$custom: #401154;
$custom-light: #785485;
$custom-dark: #000000;
JSON
{
  "hex": "#401154",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 84
  },
  "hsl": {
    "h": 282.09,
    "s": 66.337,
    "l": 19.804
  },
  "oklch": {
    "l": 0.29238,
    "c": 0.11817,
    "h": 313.6
  },
  "luminance": 0.02131
}

Semantic roles & 50–950 ramp

primary
#401154
secondary
#4E8D34
accent
#E93F71
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401154

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

Preview Lab → · Contrast checker → · Palette generator →

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