#401160#401160

#401160 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.3% C 0.131 H 307.0°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#401160
RGBrgb(64, 17, 96)
HSLhsl(276, 70%, 22%)
HSVhsv(276, 82%, 38%)
CMYKcmyk(33.3%, 82.3%, 0%, 62.4%)
CIE-LABlab(17.16, 36.96, -36.77)
CIE-LCHlch(17.16, 52.13, 315.15°)
OKLaboklab(30.26% 0.0789 -0.1046)
OKLCHoklch(30.26% 0.131 307)
XYZxyz(4.4257, 2.3355, 11.2817)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401160 #316011
analogous
#181160 #401160 #601159
triadic
#401160 #604011 #116040
tetradic
#401160 #601811 #316011 #115960
square
#401160 #601811 #316011 #115960
split-complementary
#401160 #596011 #116018
monochromatic
#11051A #1D082C #401160 #631A94 #8523C8

Accessibility & contrast

On white

14.31
#401160 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#401160 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401160
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401160#FFFFFF#000000##FFFFFF
##4011601.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002962
Deuteranopia (green-blind)
#002B5E
Tritanopia (blue-blind)
#3B2538
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #401160;
/* rgb */ color: rgb(64, 17, 96);
/* oklch */ color: oklch(30.3% 0.131 307.0);
Tailwind
colors: {
  custom: {
    50: '#79558e',
    500: '#401160',
    950: '#000000',
  },
}
SCSS
$custom: #401160;
$custom-light: #79558e;
$custom-dark: #000000;
JSON
{
  "hex": "#401160",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 96
  },
  "hsl": {
    "h": 275.696,
    "s": 69.912,
    "l": 22.157
  },
  "oklch": {
    "l": 0.30255,
    "c": 0.13101,
    "h": 307
  },
  "luminance": 0.02335
}

Semantic roles & 50–950 ramp

primary
#401160
secondary
#5D9934
accent
#ED3B83
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #401160

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

Preview Lab → · Contrast checker → · Palette generator →

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