#402846#402846

#402846 is a dark, moderate purple. Relative luminance 0.030; OKLCH L 31.9% C 0.061 H 319.4°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#402846
RGBrgb(64, 40, 70)
HSLhsl(288, 27%, 22%)
HSVhsv(288, 43%, 27%)
CMYKcmyk(8.6%, 42.9%, 0%, 72.5%)
CIE-LABlab(20.24, 17.39, -14.34)
CIE-LCHlch(20.24, 22.54, 320.48°)
OKLaboklab(31.94% 0.046 -0.0394)
OKLCHoklch(31.94% 0.061 319.4)
XYZxyz(3.9785, 3.0499, 6.1723)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402846 #2E4628
analogous
#312846 #402846 #46283D
triadic
#402846 #464028 #284640
tetradic
#402846 #463128 #2E4628 #283D46
square
#402846 #463128 #2E4628 #283D46
split-complementary
#402846 #3D4628 #284631
monochromatic
#120B13 #1C121F #402846 #643E6D #875594

Accessibility & contrast

On white

13.04
#402846 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#402846 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402846
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402846#FFFFFF#000000##FFFFFF
##4028461.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#242F47
Deuteranopia (green-blind)
#2A3245
Tritanopia (blue-blind)
#402C33
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #402846;
/* rgb */ color: rgb(64, 40, 70);
/* oklch */ color: oklch(31.9% 0.061 319.4);
Tailwind
colors: {
  custom: {
    50: '#756279',
    500: '#402846',
    950: '#000000',
  },
}
SCSS
$custom: #402846;
$custom-light: #756279;
$custom-dark: #000000;
JSON
{
  "hex": "#402846",
  "rgb": {
    "r": 64,
    "g": 40,
    "b": 70
  },
  "hsl": {
    "h": 288,
    "s": 27.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.31944,
    "c": 0.06051,
    "h": 319.4
  },
  "luminance": 0.0305
}

Semantic roles & 50–950 ramp

primary
#402846
secondary
#597852
accent
#C46477
background
#F7F5F7
surface
#EDEAED
border
#C8C6C8
text
#080509
muted
#7B797B

Preview Lab

Preview with #402846

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

Preview Lab → · Contrast checker → · Palette generator →

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