#402192#402192

#402192 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.8% C 0.171 H 287.3°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#402192
RGBrgb(64, 33, 146)
HSLhsl(256, 63%, 35%)
HSVhsv(256, 77%, 57%)
CMYKcmyk(56.2%, 77.4%, 0%, 42.7%)
CIE-LABlab(24.49, 43.17, -56.76)
CIE-LCHlch(24.49, 71.31, 307.26°)
OKLaboklab(36.84% 0.0507 -0.1633)
OKLCHoklch(36.84% 0.171 287.3)
XYZxyz(7.8450, 4.2526, 27.5960)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402192 #739221
analogous
#213B92 #402192 #782192
triadic
#402192 #924021 #219240
tetradic
#402192 #92213B #739221 #219278
square
#402192 #92213B #739221 #219278
split-complementary
#402192 #927821 #3B9221
monochromatic
#140A2E #2A1660 #402192 #562CC4 #7955D9

Accessibility & contrast

On white

11.35
#402192 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#402192 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402192
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402192#FFFFFF#000000##FFFFFF
##4021921.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D95
Deuteranopia (green-blind)
#003790
Tritanopia (blue-blind)
#1C4158
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #402192;
/* rgb */ color: rgb(64, 33, 146);
/* oklch */ color: oklch(36.8% 0.171 287.3);
Tailwind
colors: {
  custom: {
    50: '#7f60b3',
    500: '#402192',
    950: '#000000',
  },
}
SCSS
$custom: #402192;
$custom-light: #7f60b3;
$custom-dark: #000000;
JSON
{
  "hex": "#402192",
  "rgb": {
    "r": 64,
    "g": 33,
    "b": 146
  },
  "hsl": {
    "h": 256.46,
    "s": 63.128,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36839,
    "c": 0.17103,
    "h": 287.3
  },
  "luminance": 0.04253
}

Semantic roles & 50–950 ramp

primary
#402192
secondary
#9FBC53
accent
#E642B9
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #402192

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

Preview Lab → · Contrast checker → · Palette generator →

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