#401157#401157

#401157 is a dark, vivid purple. Relative luminance 0.022; OKLCH L 29.5% C 0.121 H 311.8°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).

Color values

HEX#401157
RGBrgb(64, 17, 87)
HSLhsl(280, 67%, 20%)
HSVhsv(280, 80%, 34%)
CMYKcmyk(26.4%, 80.5%, 0%, 65.9%)
CIE-LABlab(16.40, 34.76, -31.97)
CIE-LCHlch(16.40, 47.23, 317.40°)
OKLaboklab(29.48% 0.0809 -0.0905)
OKLCHoklch(29.48% 0.121 311.8)
XYZxyz(4.0348, 2.1791, 9.2230)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401157 #285711
analogous
#1D1157 #401157 #57114B
triadic
#401157 #574011 #115740
tetradic
#401157 #571D11 #285711 #114B57
square
#401157 #571D11 #285711 #114B57
split-complementary
#401157 #4B5711 #11571D
monochromatic
#13051A #1A0724 #401157 #661B8A #8B25BD

Accessibility & contrast

On white

14.63
#401157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#401157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401157
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401157#FFFFFF#000000##FFFFFF
##4011571.0014.631.4414.63
#FFFFFF14.631.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002659
Deuteranopia (green-blind)
#062956
Tritanopia (blue-blind)
#3D2133
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #401157;
/* rgb */ color: rgb(64, 17, 87);
/* oklch */ color: oklch(29.5% 0.121 311.8);
Tailwind
colors: {
  custom: {
    50: '#785587',
    500: '#401157',
    950: '#000000',
  },
}
SCSS
$custom: #401157;
$custom-light: #785587;
$custom-dark: #000000;
JSON
{
  "hex": "#401157",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 87
  },
  "hsl": {
    "h": 280.286,
    "s": 67.308,
    "l": 20.392
  },
  "oklch": {
    "l": 0.29484,
    "c": 0.12137,
    "h": 311.8
  },
  "luminance": 0.02179
}

Semantic roles & 50–950 ramp

primary
#401157
secondary
#529034
accent
#EA3E76
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401157

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

Preview Lab → · Contrast checker → · Palette generator →

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