#401562#401562

#401562 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.128 H 305.4°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#401562
RGBrgb(64, 21, 98)
HSLhsl(274, 65%, 23%)
HSVhsv(274, 79%, 38%)
CMYKcmyk(34.7%, 78.6%, 0%, 61.6%)
CIE-LABlab(17.96, 35.67, -36.80)
CIE-LCHlch(17.96, 51.25, 314.11°)
OKLaboklab(30.87% 0.0744 -0.1047)
OKLCHoklch(30.87% 0.128 305.4)
XYZxyz(4.5866, 2.5082, 11.7954)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401562 #376215
analogous
#191562 #401562 #62155D
triadic
#401562 #624015 #156240
tetradic
#401562 #621915 #376215 #155D62
square
#401562 #621915 #376215 #155D62
split-complementary
#401562 #5D6215 #156219
monochromatic
#100519 #1F0A30 #401562 #612094 #822BC7

Accessibility & contrast

On white

13.99
#401562 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#401562 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401562
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401562#FFFFFF#000000##FFFFFF
##4015621.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401562;
/* rgb */ color: rgb(64, 21, 98);
/* oklch */ color: oklch(30.9% 0.128 305.4);
Tailwind
colors: {
  custom: {
    50: '#79578f',
    500: '#401562',
    950: '#000000',
  },
}
SCSS
$custom: #401562;
$custom-light: #79578f;
$custom-dark: #000000;
JSON
{
  "hex": "#401562",
  "rgb": {
    "r": 64,
    "g": 21,
    "b": 98
  },
  "hsl": {
    "h": 273.506,
    "s": 64.706,
    "l": 23.333
  },
  "oklch": {
    "l": 0.30871,
    "c": 0.12843,
    "h": 305.4
  },
  "luminance": 0.02508
}

Semantic roles & 50–950 ramp

primary
#401562
secondary
#64993A
accent
#E8408A
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #401562

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

Preview Lab → · Contrast checker → · Palette generator →

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