#402194#402194

#402194 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.173 H 286.8°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#402194
RGBrgb(64, 33, 148)
HSLhsl(256, 64%, 35%)
HSVhsv(256, 78%, 58%)
CMYKcmyk(56.8%, 77.7%, 0%, 42%)
CIE-LABlab(24.69, 43.76, -57.67)
CIE-LCHlch(24.69, 72.39, 307.19°)
OKLaboklab(37.04% 0.0502 -0.166)
OKLCHoklch(37.04% 0.173 286.8)
XYZxyz(8.0019, 4.3154, 28.4225)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402194 #759421
analogous
#213B94 #402194 #792194
triadic
#402194 #944021 #219440
tetradic
#402194 #94213B #759421 #219479
square
#402194 #94213B #759421 #219479
split-complementary
#402194 #947921 #3B9421
monochromatic
#150B30 #2A1662 #402194 #562CC6 #7956D9

Accessibility & contrast

On white

11.27
#402194 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #402194
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402194#FFFFFF#000000##FFFFFF
##4021941.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D97
Deuteranopia (green-blind)
#003792
Tritanopia (blue-blind)
#1A4259
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #402194;
/* rgb */ color: rgb(64, 33, 148);
/* oklch */ color: oklch(37.0% 0.173 286.8);
Tailwind
colors: {
  custom: {
    50: '#7f60b4',
    500: '#402194',
    950: '#000000',
  },
}
SCSS
$custom: #402194;
$custom-light: #7f60b4;
$custom-dark: #000000;
JSON
{
  "hex": "#402194",
  "rgb": {
    "r": 64,
    "g": 33,
    "b": 148
  },
  "hsl": {
    "h": 256.174,
    "s": 63.536,
    "l": 35.49
  },
  "oklch": {
    "l": 0.37037,
    "c": 0.17341,
    "h": 286.8
  },
  "luminance": 0.04316
}

Semantic roles & 50–950 ramp

primary
#402194
secondary
#A1BD54
accent
#E741BA
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #402194

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

Preview Lab → · Contrast checker → · Palette generator →

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