#401159#401159

#401159 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.124 H 310.7°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#401159
RGBrgb(64, 17, 89)
HSLhsl(279, 68%, 21%)
HSVhsv(279, 81%, 35%)
CMYKcmyk(28.1%, 80.9%, 0%, 65.1%)
CIE-LABlab(16.56, 35.24, -33.05)
CIE-LCHlch(16.56, 48.32, 316.84°)
OKLaboklab(29.65% 0.0805 -0.0936)
OKLCHoklch(29.65% 0.124 310.7)
XYZxyz(4.1176, 2.2123, 9.6594)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401159 #2A5911
analogous
#1C1159 #401159 #59114E
triadic
#401159 #594011 #115940
tetradic
#401159 #591C11 #2A5911 #114E59
square
#401159 #591C11 #2A5911 #114E59
split-complementary
#401159 #4E5911 #11591C
monochromatic
#12051A #1B0726 #401159 #651B8C #8A25C0

Accessibility & contrast

On white

14.56
#401159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401159
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401159#FFFFFF#000000##FFFFFF
##4011591.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275B
Deuteranopia (green-blind)
#032A57
Tritanopia (blue-blind)
#3D2234
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #401159;
/* rgb */ color: rgb(64, 17, 89);
/* oklch */ color: oklch(29.7% 0.124 310.7);
Tailwind
colors: {
  custom: {
    50: '#785588',
    500: '#401159',
    950: '#000000',
  },
}
SCSS
$custom: #401159;
$custom-light: #785588;
$custom-dark: #000000;
JSON
{
  "hex": "#401159",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 89
  },
  "hsl": {
    "h": 279.167,
    "s": 67.925,
    "l": 20.784
  },
  "oklch": {
    "l": 0.29651,
    "c": 0.12351,
    "h": 310.7
  },
  "luminance": 0.02212
}

Semantic roles & 50–950 ramp

primary
#401159
secondary
#559234
accent
#EB3D79
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401159

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

Preview Lab → · Contrast checker → · Palette generator →

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