#401065#401065

#401065 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.137 H 304.8°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#401065
RGBrgb(64, 16, 101)
HSLhsl(274, 73%, 23%)
HSVhsv(274, 84%, 40%)
CMYKcmyk(36.6%, 84.2%, 0%, 60.4%)
CIE-LABlab(17.46, 38.62, -39.58)
CIE-LCHlch(17.46, 55.30, 314.29°)
OKLaboklab(30.61% 0.0785 -0.1128)
OKLCHoklch(30.61% 0.137 304.8)
XYZxyz(4.6481, 2.4002, 12.5278)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401065 #356510
analogous
#151065 #401065 #65105F
triadic
#401065 #654010 #106540
tetradic
#401065 #651510 #356510 #105F65
square
#401065 #651510 #356510 #105F65
split-complementary
#401065 #5F6510 #106515
monochromatic
#11041A #1F0830 #401065 #61189A #8321CF

Accessibility & contrast

On white

14.19
#401065 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#401065 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401065
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401065#FFFFFF#000000##FFFFFF
##4010651.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.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: #401065;
/* rgb */ color: rgb(64, 16, 101);
/* oklch */ color: oklch(30.6% 0.137 304.8);
Tailwind
colors: {
  custom: {
    50: '#795592',
    500: '#401065',
    950: '#000000',
  },
}
SCSS
$custom: #401065;
$custom-light: #795592;
$custom-dark: #000000;
JSON
{
  "hex": "#401065",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 101
  },
  "hsl": {
    "h": 273.882,
    "s": 72.65,
    "l": 22.941
  },
  "oklch": {
    "l": 0.30606,
    "c": 0.13742,
    "h": 304.8
  },
  "luminance": 0.024
}

Semantic roles & 50–950 ramp

primary
#401065
secondary
#629D33
accent
#EF3888
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#0A030D
muted
#7C787E

Preview Lab

Preview with #401065

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

Preview Lab → · Contrast checker → · Palette generator →

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