#401362#401362

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

Color values

HEX#401362
RGBrgb(64, 19, 98)
HSLhsl(274, 68%, 23%)
HSVhsv(274, 81%, 38%)
CMYKcmyk(34.7%, 80.6%, 0%, 61.6%)
CIE-LABlab(17.63, 36.59, -37.32)
CIE-LCHlch(17.63, 52.27, 314.44°)
OKLaboklab(30.64% 0.0765 -0.1062)
OKLCHoklch(30.64% 0.131 305.8)
XYZxyz(4.5513, 2.4376, 11.7836)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401362 #356213
analogous
#181362 #401362 #62135C
triadic
#401362 #624013 #136240
tetradic
#401362 #621813 #356213 #135C62
square
#401362 #621813 #356213 #135C62
split-complementary
#401362 #5C6213 #136218
monochromatic
#11051A #1F092F #401362 #611D95 #8327C9

Accessibility & contrast

On white

14.12
#401362 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401362
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401362#FFFFFF#000000##FFFFFF
##4013621.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A64
Deuteranopia (green-blind)
#002B60
Tritanopia (blue-blind)
#3A273A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #401362;
/* rgb */ color: rgb(64, 19, 98);
/* oklch */ color: oklch(30.6% 0.131 305.8);
Tailwind
colors: {
  custom: {
    50: '#79568f',
    500: '#401362',
    950: '#000000',
  },
}
SCSS
$custom: #401362;
$custom-light: #79568f;
$custom-dark: #000000;
JSON
{
  "hex": "#401362",
  "rgb": {
    "r": 64,
    "g": 19,
    "b": 98
  },
  "hsl": {
    "h": 274.177,
    "s": 67.521,
    "l": 22.941
  },
  "oklch": {
    "l": 0.30644,
    "c": 0.13086,
    "h": 305.8
  },
  "luminance": 0.02438
}

Semantic roles & 50–950 ramp

primary
#401362
secondary
#629A37
accent
#EA3D88
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #401362

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

Preview Lab → · Contrast checker → · Palette generator →

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