#400843#400843

#400843 is a dark, moderate purple. Relative luminance 0.017; OKLCH L 27.0% C 0.112 H 325.8°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#400843
RGBrgb(64, 8, 67)
HSLhsl(297, 79%, 15%)
HSVhsv(297, 88%, 26%)
CMYKcmyk(4.5%, 88.1%, 0%, 73.7%)
CIE-LABlab(13.64, 33.91, -22.65)
CIE-LCHlch(13.64, 40.78, 326.26°)
OKLaboklab(27.05% 0.0929 -0.0631)
OKLCHoklch(27.05% 0.112 325.8)
XYZxyz(3.2142, 1.6691, 5.4620)
Luminance0.0167 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400843 #0B4308
analogous
#230843 #400843 #430829
triadic
#400843 #434008 #084340
tetradic
#400843 #432308 #0B4308 #082943
square
#400843 #432308 #0B4308 #082943
split-complementary
#400843 #294308 #084323
monochromatic
#1A031B #1A031B #400843 #740F7A #A815B0

Accessibility & contrast

On white

15.74
#400843 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400843
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400843#FFFFFF#000000##FFFFFF
##4008431.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F45
Deuteranopia (green-blind)
#162542
Tritanopia (blue-blind)
#421326
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #400843;
/* rgb */ color: rgb(64, 8, 67);
/* oklch */ color: oklch(27.0% 0.112 325.8);
Tailwind
colors: {
  custom: {
    50: '#775077',
    500: '#400843',
    950: '#000000',
  },
}
SCSS
$custom: #400843;
$custom-light: #775077;
$custom-dark: #000000;
JSON
{
  "hex": "#400843",
  "rgb": {
    "r": 64,
    "g": 8,
    "b": 67
  },
  "hsl": {
    "h": 296.949,
    "s": 78.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.27047,
    "c": 0.11225,
    "h": 325.8
  },
  "luminance": 0.01669
}

Semantic roles & 50–950 ramp

primary
#400843
secondary
#2A8125
accent
#F5333D
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090209
muted
#7B787B

Preview Lab

Preview with #400843

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

Preview Lab → · Contrast checker → · Palette generator →

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