#400948#400948

#400948 is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.5% C 0.116 H 322.1°. Best body text is #FFFFFF at 15.55:1 contrast (WCAG AA passes).

Color values

HEX#400948
RGBrgb(64, 9, 72)
HSLhsl(292, 78%, 16%)
HSVhsv(292, 88%, 28%)
CMYKcmyk(11.1%, 87.5%, 0%, 71.8%)
CIE-LABlab(14.14, 34.55, -25.36)
CIE-LCHlch(14.14, 42.86, 323.73°)
OKLaboklab(27.51% 0.0914 -0.071)
OKLCHoklch(27.51% 0.116 322.1)
XYZxyz(3.3816, 1.7534, 6.2900)
Luminance0.0175 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400948 #114809
analogous
#200948 #400948 #480930
triadic
#400948 #484009 #094840
tetradic
#400948 #482009 #114809 #093048
square
#400948 #482009 #114809 #093048
split-complementary
#400948 #304809 #094820
monochromatic
#18031B #18031B #400948 #70107E #A117B5

Accessibility & contrast

On white

15.55
#400948 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#400948 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400948
15.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400948#FFFFFF#000000##FFFFFF
##4009481.0015.551.3515.55
#FFFFFF15.551.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204A
Deuteranopia (green-blind)
#132647
Tritanopia (blue-blind)
#411629
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #400948;
/* rgb */ color: rgb(64, 9, 72);
/* oklch */ color: oklch(27.5% 0.116 322.1);
Tailwind
colors: {
  custom: {
    50: '#78507b',
    500: '#400948',
    950: '#000000',
  },
}
SCSS
$custom: #400948;
$custom-light: #78507b;
$custom-dark: #000000;
JSON
{
  "hex": "#400948",
  "rgb": {
    "r": 64,
    "g": 9,
    "b": 72
  },
  "hsl": {
    "h": 292.381,
    "s": 77.778,
    "l": 15.882
  },
  "oklch": {
    "l": 0.27511,
    "c": 0.11569,
    "h": 322.1
  },
  "luminance": 0.01753
}

Semantic roles & 50–950 ramp

primary
#400948
secondary
#338527
accent
#F4344C
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#090209
muted
#7B787B

Preview Lab

Preview with #400948

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

Preview Lab → · Contrast checker → · Palette generator →

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