#402646#402646

#402646 is a dark, moderate purple. Relative luminance 0.029; OKLCH L 31.5% C 0.065 H 319.9°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#402646
RGBrgb(64, 38, 70)
HSLhsl(289, 30%, 21%)
HSVhsv(289, 46%, 27%)
CMYKcmyk(8.6%, 45.7%, 0%, 72.5%)
CIE-LABlab(19.71, 18.70, -15.16)
CIE-LCHlch(19.71, 24.08, 320.97°)
OKLaboklab(31.55% 0.0495 -0.0417)
OKLCHoklch(31.55% 0.065 319.9)
XYZxyz(3.9128, 2.9185, 6.1504)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402646 #2C4626
analogous
#302646 #402646 #46263C
triadic
#402646 #464026 #264640
tetradic
#402646 #463026 #2C4626 #263C46
square
#402646 #463026 #2C4626 #263C46
split-complementary
#402646 #3C4626 #264630
monochromatic
#120B14 #1C101E #402646 #643C6E #895195

Accessibility & contrast

On white

13.26
#402646 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#402646 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402646
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402646#FFFFFF#000000##FFFFFF
##4026461.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#222E47
Deuteranopia (green-blind)
#283145
Tritanopia (blue-blind)
#402A32
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #402646;
/* rgb */ color: rgb(64, 38, 70);
/* oklch */ color: oklch(31.5% 0.065 319.9);
Tailwind
colors: {
  custom: {
    50: '#756179',
    500: '#402646',
    950: '#000000',
  },
}
SCSS
$custom: #402646;
$custom-light: #756179;
$custom-dark: #000000;
JSON
{
  "hex": "#402646",
  "rgb": {
    "r": 64,
    "g": 38,
    "b": 70
  },
  "hsl": {
    "h": 288.75,
    "s": 29.63,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31547,
    "c": 0.06474,
    "h": 319.9
  },
  "luminance": 0.02918
}

Semantic roles & 50–950 ramp

primary
#402646
secondary
#57794F
accent
#C66275
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#080509
muted
#7B797B

Preview Lab

Preview with #402646

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

Preview Lab → · Contrast checker → · Palette generator →

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