#402190#402190

#402190 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.169 H 287.7°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#402190
RGBrgb(64, 33, 144)
HSLhsl(257, 63%, 35%)
HSVhsv(257, 77%, 56%)
CMYKcmyk(55.6%, 77.1%, 0%, 43.5%)
CIE-LABlab(24.29, 42.59, -55.84)
CIE-LCHlch(24.29, 70.23, 307.33°)
OKLaboklab(36.64% 0.0513 -0.1606)
OKLCHoklch(36.64% 0.169 287.7)
XYZxyz(7.6908, 4.1909, 26.7838)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402190 #719021
analogous
#213990 #402190 #782190
triadic
#402190 #904021 #219040
tetradic
#402190 #902139 #719021 #219078
square
#402190 #902139 #719021 #219078
split-complementary
#402190 #907821 #399021
monochromatic
#140A2C #2A165E #402190 #562CC2 #7954D8

Accessibility & contrast

On white

11.42
#402190 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#402190 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402190
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402190#FFFFFF#000000##FFFFFF
##4021901.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C93
Deuteranopia (green-blind)
#00378E
Tritanopia (blue-blind)
#1F4057
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #402190;
/* rgb */ color: rgb(64, 33, 144);
/* oklch */ color: oklch(36.6% 0.169 287.7);
Tailwind
colors: {
  custom: {
    50: '#7e60b2',
    500: '#402190',
    950: '#000000',
  },
}
SCSS
$custom: #402190;
$custom-light: #7e60b2;
$custom-dark: #000000;
JSON
{
  "hex": "#402190",
  "rgb": {
    "r": 64,
    "g": 33,
    "b": 144
  },
  "hsl": {
    "h": 256.757,
    "s": 62.712,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36641,
    "c": 0.16864,
    "h": 287.7
  },
  "luminance": 0.04191
}

Semantic roles & 50–950 ramp

primary
#402190
secondary
#9EBB51
accent
#E642B8
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #402190

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

Preview Lab → · Contrast checker → · Palette generator →

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