#402496#402496

#402496 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.6% C 0.173 H 285.9°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#402496
RGBrgb(64, 36, 150)
HSLhsl(255, 61%, 36%)
HSVhsv(255, 76%, 59%)
CMYKcmyk(57.3%, 76%, 0%, 41.2%)
CIE-LABlab(25.42, 42.83, -57.69)
CIE-LCHlch(25.42, 71.85, 306.59°)
OKLaboklab(37.61% 0.0473 -0.1661)
OKLCHoklch(37.61% 0.173 285.9)
XYZxyz(8.2486, 4.5533, 29.2925)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402496 #7A9624
analogous
#244196 #402496 #792496
triadic
#402496 #964024 #249640
tetradic
#402496 #962441 #7A9624 #249679
square
#402496 #962441 #7A9624 #249679
split-complementary
#402496 #967924 #419624
monochromatic
#160C33 #2B1865 #402496 #5530C7 #7B5CD8

Accessibility & contrast

On white

10.99
#402496 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#402496 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402496
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402496#FFFFFF#000000##FFFFFF
##4024961.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F99
Deuteranopia (green-blind)
#003994
Tritanopia (blue-blind)
#17445B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #402496;
/* rgb */ color: rgb(64, 36, 150);
/* oklch */ color: oklch(37.6% 0.173 285.9);
Tailwind
colors: {
  custom: {
    50: '#7f62b6',
    500: '#402496',
    950: '#000000',
  },
}
SCSS
$custom: #402496;
$custom-light: #7f62b6;
$custom-dark: #000000;
JSON
{
  "hex": "#402496",
  "rgb": {
    "r": 64,
    "g": 36,
    "b": 150
  },
  "hsl": {
    "h": 254.737,
    "s": 61.29,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37613,
    "c": 0.1727,
    "h": 285.9
  },
  "luminance": 0.04554
}

Semantic roles & 50–950 ramp

primary
#402496
secondary
#A4BD59
accent
#E443BD
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #402496

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

Preview Lab → · Contrast checker → · Palette generator →

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