#401462#401462

#401462 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.130 H 305.6°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#401462
RGBrgb(64, 20, 98)
HSLhsl(274, 66%, 23%)
HSVhsv(274, 80%, 38%)
CMYKcmyk(34.7%, 79.6%, 0%, 61.6%)
CIE-LABlab(17.79, 36.14, -37.06)
CIE-LCHlch(17.79, 51.77, 314.28°)
OKLaboklab(30.76% 0.0755 -0.1054)
OKLCHoklch(30.76% 0.13 305.6)
XYZxyz(4.5686, 2.4722, 11.7894)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401462 #366214
analogous
#191462 #401462 #62145D
triadic
#401462 #624014 #146240
tetradic
#401462 #621914 #366214 #145D62
square
#401462 #621914 #366214 #145D62
split-complementary
#401462 #5D6214 #146219
monochromatic
#110519 #1F0A2F #401462 #611E95 #8229C8

Accessibility & contrast

On white

14.05
#401462 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401462
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401462#FFFFFF#000000##FFFFFF
##4014621.0014.051.4914.05
#FFFFFF14.051.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401462;
/* rgb */ color: rgb(64, 20, 98);
/* oklch */ color: oklch(30.8% 0.130 305.6);
Tailwind
colors: {
  custom: {
    50: '#79578f',
    500: '#401462',
    950: '#000000',
  },
}
SCSS
$custom: #401462;
$custom-light: #79578f;
$custom-dark: #000000;
JSON
{
  "hex": "#401462",
  "rgb": {
    "r": 64,
    "g": 20,
    "b": 98
  },
  "hsl": {
    "h": 273.846,
    "s": 66.102,
    "l": 23.137
  },
  "oklch": {
    "l": 0.30756,
    "c": 0.12967,
    "h": 305.6
  },
  "luminance": 0.02472
}

Semantic roles & 50–950 ramp

primary
#401462
secondary
#639938
accent
#E93F89
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #401462

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

Preview Lab → · Contrast checker → · Palette generator →

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