#401895#401895

#401895 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.2% C 0.183 H 287.8°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#401895
RGBrgb(64, 24, 149)
HSLhsl(259, 72%, 34%)
HSVhsv(259, 84%, 58%)
CMYKcmyk(57%, 83.9%, 0%, 41.6%)
CIE-LABlab(23.38, 48.13, -60.44)
CIE-LCHlch(23.38, 77.26, 308.53°)
OKLaboklab(36.16% 0.0559 -0.174)
OKLCHoklch(36.16% 0.183 287.8)
XYZxyz(7.8642, 3.9128, 28.7688)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401895 #6D9518
analogous
#182F95 #401895 #7F1895
triadic
#401895 #954018 #189540
tetradic
#401895 #95182F #6D9518 #18957F
square
#401895 #95182F #6D9518 #18957F
split-complementary
#401895 #957F18 #2F9518
monochromatic
#13072C #291060 #401895 #5720CA #7846E1

Accessibility & contrast

On white

11.78
#401895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#401895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401895
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401895#FFFFFF#000000##FFFFFF
##4018951.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A98
Deuteranopia (green-blind)
#003493
Tritanopia (blue-blind)
#193E58
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #401895;
/* rgb */ color: rgb(64, 24, 149);
/* oklch */ color: oklch(36.2% 0.183 287.8);
Tailwind
colors: {
  custom: {
    50: '#805cb5',
    500: '#401895',
    950: '#000000',
  },
}
SCSS
$custom: #401895;
$custom-light: #805cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#401895",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 149
  },
  "hsl": {
    "h": 259.2,
    "s": 72.254,
    "l": 33.922
  },
  "oklch": {
    "l": 0.36161,
    "c": 0.18273,
    "h": 287.8
  },
  "luminance": 0.03913
}

Semantic roles & 50–950 ramp

primary
#401895
secondary
#9BC246
accent
#EF39B5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #401895

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

Preview Lab → · Contrast checker → · Palette generator →

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