#402848#402848

#402848 is a dark, moderate purple. Relative luminance 0.031; OKLCH L 32.1% C 0.063 H 317.4°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#402848
RGBrgb(64, 40, 72)
HSLhsl(285, 29%, 22%)
HSVhsv(285, 44%, 28%)
CMYKcmyk(11.1%, 44.4%, 0%, 71.8%)
CIE-LABlab(20.34, 17.88, -15.54)
CIE-LCHlch(20.34, 23.69, 319.00°)
OKLaboklab(32.05% 0.0465 -0.0428)
OKLCHoklch(32.05% 0.063 317.4)
XYZxyz(4.0427, 3.0756, 6.5103)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402848 #304828
analogous
#302848 #402848 #482840
triadic
#402848 #484028 #284840
tetradic
#402848 #483028 #304828 #284048
square
#402848 #483028 #304828 #284048
split-complementary
#402848 #404828 #284830
monochromatic
#110B14 #1D1221 #402848 #633E6F #865497

Accessibility & contrast

On white

13.00
#402848 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#402848 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402848
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402848#FFFFFF#000000##FFFFFF
##4028481.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#232F49
Deuteranopia (green-blind)
#293247
Tritanopia (blue-blind)
#402C34
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #402848;
/* rgb */ color: rgb(64, 40, 72);
/* oklch */ color: oklch(32.1% 0.063 317.4);
Tailwind
colors: {
  custom: {
    50: '#75627b',
    500: '#402848',
    950: '#000000',
  },
}
SCSS
$custom: #402848;
$custom-light: #75627b;
$custom-dark: #000000;
JSON
{
  "hex": "#402848",
  "rgb": {
    "r": 64,
    "g": 40,
    "b": 72
  },
  "hsl": {
    "h": 285,
    "s": 28.571,
    "l": 21.961
  },
  "oklch": {
    "l": 0.32054,
    "c": 0.06318,
    "h": 317.4
  },
  "luminance": 0.03075
}

Semantic roles & 50–950 ramp

primary
#402848
secondary
#5C7A52
accent
#C5637B
background
#F7F5F7
surface
#EDEAED
border
#C8C6C8
text
#080509
muted
#7B797B

Preview Lab

Preview with #402848

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

Preview Lab → · Contrast checker → · Palette generator →

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