#401162#401162

#401162 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.133 H 306.1°. Best body text is #FFFFFF at 14.24:1 contrast (WCAG AA passes).

Color values

HEX#401162
RGBrgb(64, 17, 98)
HSLhsl(275, 70%, 23%)
HSVhsv(275, 83%, 38%)
CMYKcmyk(34.7%, 82.7%, 0%, 61.6%)
CIE-LABlab(17.33, 37.46, -37.81)
CIE-LCHlch(17.33, 53.22, 314.73°)
OKLaboklab(30.43% 0.0784 -0.1076)
OKLCHoklch(30.43% 0.133 306.1)
XYZxyz(4.5189, 2.3728, 11.7728)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401162 #336211
analogous
#181162 #401162 #62115B
triadic
#401162 #624011 #116240
tetradic
#401162 #621811 #336211 #115B62
square
#401162 #621811 #336211 #115B62
split-complementary
#401162 #5B6211 #116218
monochromatic
#11051A #1E082E #401162 #621A96 #8423CA

Accessibility & contrast

On white

14.24
#401162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#401162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401162
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401162#FFFFFF#000000##FFFFFF
##4011621.0014.241.4714.24
#FFFFFF14.241.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401162;
/* rgb */ color: rgb(64, 17, 98);
/* oklch */ color: oklch(30.4% 0.133 306.1);
Tailwind
colors: {
  custom: {
    50: '#79558f',
    500: '#401162',
    950: '#000000',
  },
}
SCSS
$custom: #401162;
$custom-light: #79558f;
$custom-dark: #000000;
JSON
{
  "hex": "#401162",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 98
  },
  "hsl": {
    "h": 274.815,
    "s": 70.435,
    "l": 22.549
  },
  "oklch": {
    "l": 0.30433,
    "c": 0.13315,
    "h": 306.1
  },
  "luminance": 0.02373
}

Semantic roles & 50–950 ramp

primary
#401162
secondary
#5F9A34
accent
#ED3B86
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #401162

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

Preview Lab → · Contrast checker → · Palette generator →

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