#402A92#402A92

#402A92 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.1% C 0.161 H 285.6°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#402A92
RGBrgb(64, 42, 146)
HSLhsl(253, 55%, 37%)
HSVhsv(253, 71%, 57%)
CMYKcmyk(56.2%, 71.2%, 0%, 42.7%)
CIE-LABlab(26.22, 38.32, -53.92)
CIE-LCHlch(26.22, 66.15, 305.40°)
OKLaboklab(38.06% 0.0432 -0.1551)
OKLCHoklch(38.06% 0.161 285.6)
XYZxyz(8.1291, 4.8208, 27.6907)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402A92 #7C922A
analogous
#2A4892 #402A92 #742A92
triadic
#402A92 #92402A #2A9240
tetradic
#402A92 #922A48 #7C922A #2A9274
square
#402A92 #922A48 #7C922A #2A9274
split-complementary
#402A92 #92742A #48922A
monochromatic
#160F33 #2B1C62 #402A92 #5538C2 #7B64D2

Accessibility & contrast

On white

10.69
#402A92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#402A92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402A92
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402A92#FFFFFF#000000##FFFFFF
##402A921.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004195
Deuteranopia (green-blind)
#003B90
Tritanopia (blue-blind)
#1B455B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #402a92;
/* rgb */ color: rgb(64, 42, 146);
/* oklch */ color: oklch(38.1% 0.161 285.6);
Tailwind
colors: {
  custom: {
    50: '#7e65b3',
    500: '#402a92',
    950: '#000000',
  },
}
SCSS
$custom: #402a92;
$custom-light: #7e65b3;
$custom-dark: #000000;
JSON
{
  "hex": "#402a92",
  "rgb": {
    "r": 64,
    "g": 42,
    "b": 146
  },
  "hsl": {
    "h": 252.692,
    "s": 55.319,
    "l": 36.863
  },
  "oklch": {
    "l": 0.38062,
    "c": 0.16099,
    "h": 285.6
  },
  "luminance": 0.04821
}

Semantic roles & 50–950 ramp

primary
#402A92
secondary
#A6B85F
accent
#DF49BF
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #402A92

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

Preview Lab → · Contrast checker → · Palette generator →

#402A92 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva