#402890#402890

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

Color values

HEX#402890
RGBrgb(64, 40, 144)
HSLhsl(254, 57%, 36%)
HSVhsv(254, 72%, 56%)
CMYKcmyk(55.6%, 72.2%, 0%, 43.5%)
CIE-LABlab(25.63, 38.84, -53.66)
CIE-LCHlch(25.63, 66.24, 305.90°)
OKLaboklab(37.58% 0.0454 -0.1543)
OKLCHoklch(37.58% 0.161 286.4)
XYZxyz(7.9057, 4.6208, 26.8555)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402890 #789028
analogous
#284490 #402890 #742890
triadic
#402890 #904028 #289040
tetradic
#402890 #902844 #789028 #289074
square
#402890 #902844 #789028 #289074
split-complementary
#402890 #907428 #449028
monochromatic
#150D30 #2B1B60 #402890 #5535C0 #7A60D3

Accessibility & contrast

On white

10.91
#402890 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#402890 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402890
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402890#FFFFFF#000000##FFFFFF
##4028901.0010.911.9210.91
#FFFFFF10.911.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F93
Deuteranopia (green-blind)
#003A8E
Tritanopia (blue-blind)
#1E4359
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #402890;
/* rgb */ color: rgb(64, 40, 144);
/* oklch */ color: oklch(37.6% 0.161 286.4);
Tailwind
colors: {
  custom: {
    50: '#7e64b1',
    500: '#402890',
    950: '#000000',
  },
}
SCSS
$custom: #402890;
$custom-light: #7e64b1;
$custom-dark: #000000;
JSON
{
  "hex": "#402890",
  "rgb": {
    "r": 64,
    "g": 40,
    "b": 144
  },
  "hsl": {
    "h": 253.846,
    "s": 56.522,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37583,
    "c": 0.16083,
    "h": 286.4
  },
  "luminance": 0.04621
}

Semantic roles & 50–950 ramp

primary
#402890
secondary
#A3B85C
accent
#E048BD
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #402890

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

Preview Lab → · Contrast checker → · Palette generator →

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