#402193#402193

#402193 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.9% C 0.172 H 287.0°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#402193
RGBrgb(64, 33, 147)
HSLhsl(256, 63%, 35%)
HSVhsv(256, 78%, 58%)
CMYKcmyk(56.5%, 77.6%, 0%, 42.4%)
CIE-LABlab(24.59, 43.47, -57.21)
CIE-LCHlch(24.59, 71.85, 307.23°)
OKLaboklab(36.94% 0.0505 -0.1647)
OKLCHoklch(36.94% 0.172 287)
XYZxyz(7.9231, 4.2839, 28.0075)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402193 #749321
analogous
#213B93 #402193 #792193
triadic
#402193 #934021 #219340
tetradic
#402193 #93213B #749321 #219379
square
#402193 #93213B #749321 #219379
split-complementary
#402193 #937921 #3B9321
monochromatic
#140B2F #2A1661 #402193 #562CC5 #7955D9

Accessibility & contrast

On white

11.31
#402193 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#402193 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402193
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402193#FFFFFF#000000##FFFFFF
##4021931.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D96
Deuteranopia (green-blind)
#003791
Tritanopia (blue-blind)
#1B4159
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #402193;
/* rgb */ color: rgb(64, 33, 147);
/* oklch */ color: oklch(36.9% 0.172 287.0);
Tailwind
colors: {
  custom: {
    50: '#7f60b4',
    500: '#402193',
    950: '#000000',
  },
}
SCSS
$custom: #402193;
$custom-light: #7f60b4;
$custom-dark: #000000;
JSON
{
  "hex": "#402193",
  "rgb": {
    "r": 64,
    "g": 33,
    "b": 147
  },
  "hsl": {
    "h": 256.316,
    "s": 63.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36938,
    "c": 0.17222,
    "h": 287
  },
  "luminance": 0.04284
}

Semantic roles & 50–950 ramp

primary
#402193
secondary
#A0BD53
accent
#E641BA
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #402193

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

Preview Lab → · Contrast checker → · Palette generator →

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