#402B92#402B92

#402B92 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.2% C 0.160 H 285.4°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#402B92
RGBrgb(64, 43, 146)
HSLhsl(252, 54%, 37%)
HSVhsv(252, 71%, 57%)
CMYKcmyk(56.2%, 70.5%, 0%, 42.7%)
CIE-LABlab(26.43, 37.75, -53.58)
CIE-LCHlch(26.43, 65.54, 305.16°)
OKLaboklab(38.21% 0.0423 -0.1541)
OKLCHoklch(38.21% 0.16 285.4)
XYZxyz(8.1650, 4.8926, 27.7027)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402B92 #7D922B
analogous
#2B4A92 #402B92 #742B92
triadic
#402B92 #92402B #2B9240
tetradic
#402B92 #922B4A #7D922B #2B9274
square
#402B92 #922B4A #7D922B #2B9274
split-complementary
#402B92 #92742B #4A922B
monochromatic
#170F33 #2B1D63 #402B92 #5539C1 #7C66D2

Accessibility & contrast

On white

10.61
#402B92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#402B92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402B92
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402B92#FFFFFF#000000##FFFFFF
##402B921.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #402b92;
/* rgb */ color: rgb(64, 43, 146);
/* oklch */ color: oklch(38.2% 0.160 285.4);
Tailwind
colors: {
  custom: {
    50: '#7e66b3',
    500: '#402b92',
    950: '#000000',
  },
}
SCSS
$custom: #402b92;
$custom-light: #7e66b3;
$custom-dark: #000000;
JSON
{
  "hex": "#402b92",
  "rgb": {
    "r": 64,
    "g": 43,
    "b": 146
  },
  "hsl": {
    "h": 252.233,
    "s": 54.497,
    "l": 37.059
  },
  "oklch": {
    "l": 0.38211,
    "c": 0.15978,
    "h": 285.4
  },
  "luminance": 0.04893
}

Semantic roles & 50–950 ramp

primary
#402B92
secondary
#A6B861
accent
#DE4AC0
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #402B92

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

Preview Lab → · Contrast checker → · Palette generator →

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