#400945#400945

#400945 is a dark, moderate purple. Relative luminance 0.017; OKLCH L 27.3% C 0.113 H 324.3°. Best body text is #FFFFFF at 15.64:1 contrast (WCAG AA passes).

Color values

HEX#400945
RGBrgb(64, 9, 69)
HSLhsl(295, 77%, 15%)
HSVhsv(295, 87%, 27%)
CMYKcmyk(7.2%, 87%, 0%, 72.9%)
CIE-LABlab(13.92, 33.94, -23.62)
CIE-LCHlch(13.92, 41.35, 325.17°)
OKLaboklab(27.28% 0.0917 -0.0659)
OKLCHoklch(27.28% 0.113 324.3)
XYZxyz(3.2861, 1.7152, 5.7871)
Luminance0.0171 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400945 #0E4509
analogous
#220945 #400945 #45092C
triadic
#400945 #454009 #094540
tetradic
#400945 #452209 #0E4509 #092C45
square
#400945 #452209 #0E4509 #092C45
split-complementary
#400945 #2C4509 #094522
monochromatic
#19041B #19041B #400945 #72107B #A417B1

Accessibility & contrast

On white

15.64
#400945 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#400945 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400945
15.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400945#FFFFFF#000000##FFFFFF
##4009451.0015.641.3415.64
#FFFFFF15.641.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F47
Deuteranopia (green-blind)
#152644
Tritanopia (blue-blind)
#411527
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #400945;
/* rgb */ color: rgb(64, 9, 69);
/* oklch */ color: oklch(27.3% 0.113 324.3);
Tailwind
colors: {
  custom: {
    50: '#775079',
    500: '#400945',
    950: '#000000',
  },
}
SCSS
$custom: #400945;
$custom-light: #775079;
$custom-dark: #000000;
JSON
{
  "hex": "#400945",
  "rgb": {
    "r": 64,
    "g": 9,
    "b": 69
  },
  "hsl": {
    "h": 295,
    "s": 76.923,
    "l": 15.294
  },
  "oklch": {
    "l": 0.27285,
    "c": 0.1129,
    "h": 324.3
  },
  "luminance": 0.01715
}

Semantic roles & 50–950 ramp

primary
#400945
secondary
#2F8327
accent
#F33444
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090209
muted
#7B787B

Preview Lab

Preview with #400945

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

Preview Lab → · Contrast checker → · Palette generator →

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