#401165#401165

#401165 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.136 H 304.7°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#401165
RGBrgb(64, 17, 101)
HSLhsl(274, 71%, 23%)
HSVhsv(274, 83%, 40%)
CMYKcmyk(36.6%, 83.2%, 0%, 60.4%)
CIE-LABlab(17.60, 38.21, -39.35)
CIE-LCHlch(17.60, 54.85, 314.15°)
OKLaboklab(30.7% 0.0776 -0.1122)
OKLCHoklch(30.7% 0.136 304.7)
XYZxyz(4.6632, 2.4305, 12.5329)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401165 #366511
analogous
#161165 #401165 #651160
triadic
#401165 #654011 #116540
tetradic
#401165 #651611 #366511 #116065
square
#401165 #651611 #366511 #116065
split-complementary
#401165 #606511 #116516
monochromatic
#11041A #1F0831 #401165 #611A99 #8223CE

Accessibility & contrast

On white

14.13
#401165 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#401165 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401165
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401165#FFFFFF#000000##FFFFFF
##4011651.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A67
Deuteranopia (green-blind)
#002B63
Tritanopia (blue-blind)
#39273B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #401165;
/* rgb */ color: rgb(64, 17, 101);
/* oklch */ color: oklch(30.7% 0.136 304.7);
Tailwind
colors: {
  custom: {
    50: '#795592',
    500: '#401165',
    950: '#000000',
  },
}
SCSS
$custom: #401165;
$custom-light: #795592;
$custom-dark: #000000;
JSON
{
  "hex": "#401165",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 101
  },
  "hsl": {
    "h": 273.571,
    "s": 71.186,
    "l": 23.137
  },
  "oklch": {
    "l": 0.30704,
    "c": 0.13638,
    "h": 304.7
  },
  "luminance": 0.0243
}

Semantic roles & 50–950 ramp

primary
#401165
secondary
#639D35
accent
#EE3A89
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #401165

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

Preview Lab → · Contrast checker → · Palette generator →

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