#402986#402986

#402986 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.8% C 0.147 H 288.4°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#402986
RGBrgb(64, 41, 134)
HSLhsl(255, 53%, 34%)
HSVhsv(255, 69%, 53%)
CMYKcmyk(52.2%, 69.4%, 0%, 47.5%)
CIE-LABlab(24.94, 35.17, -48.55)
CIE-LCHlch(24.94, 59.96, 305.92°)
OKLaboklab(36.82% 0.0463 -0.1393)
OKLCHoklch(36.82% 0.147 288.4)
XYZxyz(7.2091, 4.3968, 23.0184)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402986 #6F8629
analogous
#294186 #402986 #6F2986
triadic
#402986 #864029 #298640
tetradic
#402986 #862941 #6F8629 #29866F
square
#402986 #862941 #6F8629 #29866F
split-complementary
#402986 #866F29 #418629
monochromatic
#130C28 #2A1B57 #402986 #5637B5 #785CCD

Accessibility & contrast

On white

11.17
#402986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#402986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402986
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402986#FFFFFF#000000##FFFFFF
##4029861.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D89
Deuteranopia (green-blind)
#003984
Tritanopia (blue-blind)
#274054
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #402986;
/* rgb */ color: rgb(64, 41, 134);
/* oklch */ color: oklch(36.8% 0.147 288.4);
Tailwind
colors: {
  custom: {
    50: '#7c64aa',
    500: '#402986',
    950: '#000000',
  },
}
SCSS
$custom: #402986;
$custom-light: #7c64aa;
$custom-dark: #000000;
JSON
{
  "hex": "#402986",
  "rgb": {
    "r": 64,
    "g": 41,
    "b": 134
  },
  "hsl": {
    "h": 254.839,
    "s": 53.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36819,
    "c": 0.14679,
    "h": 288.4
  },
  "luminance": 0.04397
}

Semantic roles & 50–950 ramp

primary
#402986
secondary
#9CB358
accent
#DD4BB9
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #402986

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

Preview Lab → · Contrast checker → · Palette generator →

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