#400546#400546

#400546 is a dark, moderate purple. Relative luminance 0.016; OKLCH L 27.0% C 0.118 H 323.8°. Best body text is #FFFFFF at 15.81:1 contrast (WCAG AA passes).

Color values

HEX#400546
RGBrgb(64, 5, 70)
HSLhsl(294, 87%, 15%)
HSVhsv(294, 93%, 27%)
CMYKcmyk(8.6%, 92.9%, 0%, 72.5%)
CIE-LABlab(13.48, 35.63, -25.02)
CIE-LCHlch(13.48, 43.54, 324.92°)
OKLaboklab(27% 0.0956 -0.07)
OKLCHoklch(27% 0.118 323.8)
XYZxyz(3.2740, 1.6409, 5.9375)
Luminance0.0164 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400546 #0B4605
analogous
#200546 #400546 #46052B
triadic
#400546 #464005 #054640
tetradic
#400546 #462005 #0B4605 #052B46
square
#400546 #462005 #0B4605 #052B46
split-complementary
#400546 #2B4605 #054620
monochromatic
#1A021D #1A021D #400546 #74097F #A80DB8

Accessibility & contrast

On white

15.81
#400546 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#400546 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400546
15.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400546#FFFFFF#000000##FFFFFF
##4005461.0015.811.3315.81
#FFFFFF15.811.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E48
Deuteranopia (green-blind)
#122545
Tritanopia (blue-blind)
#411327
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #400546;
/* rgb */ color: rgb(64, 5, 70);
/* oklch */ color: oklch(27.0% 0.118 323.8);
Tailwind
colors: {
  custom: {
    50: '#784f7a',
    500: '#400546',
    950: '#000000',
  },
}
SCSS
$custom: #400546;
$custom-light: #784f7a;
$custom-dark: #000000;
JSON
{
  "hex": "#400546",
  "rgb": {
    "r": 64,
    "g": 5,
    "b": 70
  },
  "hsl": {
    "h": 294.462,
    "s": 86.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.26999,
    "c": 0.11849,
    "h": 323.8
  },
  "luminance": 0.01641
}

Semantic roles & 50–950 ramp

primary
#400546
secondary
#2A8621
accent
#FD2B3E
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090209
muted
#7B787B

Preview Lab

Preview with #400546

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

Preview Lab → · Contrast checker → · Palette generator →

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