#401150#401150

#401150 is a dark, moderate purple. Relative luminance 0.021; OKLCH L 28.9% C 0.114 H 316.0°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#401150
RGBrgb(64, 17, 80)
HSLhsl(285, 65%, 19%)
HSVhsv(285, 79%, 31%)
CMYKcmyk(20%, 78.8%, 0%, 68.6%)
CIE-LABlab(15.85, 33.11, -28.11)
CIE-LCHlch(15.85, 43.44, 319.67°)
OKLaboklab(28.92% 0.082 -0.0791)
OKLCHoklch(28.92% 0.114 316)
XYZxyz(3.7625, 2.0702, 7.7893)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401150 #215011
analogous
#211150 #401150 #501141
triadic
#401150 #504011 #115040
tetradic
#401150 #502111 #215011 #114150
square
#401150 #502111 #215011 #114150
split-complementary
#401150 #415011 #115021
monochromatic
#140519 #18061E #401150 #681C82 #9126B5

Accessibility & contrast

On white

14.85
#401150 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#401150 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401150
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401150#FFFFFF#000000##FFFFFF
##4011501.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002552
Deuteranopia (green-blind)
#10294F
Tritanopia (blue-blind)
#3F1E2F
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #401150;
/* rgb */ color: rgb(64, 17, 80);
/* oklch */ color: oklch(28.9% 0.114 316.0);
Tailwind
colors: {
  custom: {
    50: '#775481',
    500: '#401150',
    950: '#000000',
  },
}
SCSS
$custom: #401150;
$custom-light: #775481;
$custom-dark: #000000;
JSON
{
  "hex": "#401150",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 80
  },
  "hsl": {
    "h": 284.762,
    "s": 64.948,
    "l": 19.02
  },
  "oklch": {
    "l": 0.2892,
    "c": 0.11394,
    "h": 316
  },
  "luminance": 0.0207
}

Semantic roles & 50–950 ramp

primary
#401150
secondary
#498933
accent
#E8406B
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #401150

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

Preview Lab → · Contrast checker → · Palette generator →

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