#400943#400943

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

Color values

HEX#400943
RGBrgb(64, 9, 67)
HSLhsl(297, 76%, 15%)
HSVhsv(297, 87%, 26%)
CMYKcmyk(4.5%, 86.6%, 0%, 73.7%)
CIE-LABlab(13.77, 33.54, -22.44)
CIE-LCHlch(13.77, 40.36, 326.21°)
OKLaboklab(27.14% 0.0918 -0.0625)
OKLCHoklch(27.14% 0.111 325.8)
XYZxyz(3.2251, 1.6908, 5.4656)
Luminance0.0169 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400943 #0C4309
analogous
#230943 #400943 #430929
triadic
#400943 #434009 #094340
tetradic
#400943 #432309 #0C4309 #092943
square
#400943 #432309 #0C4309 #092943
split-complementary
#400943 #294309 #094323
monochromatic
#1A041B #1A041B #400943 #741079 #A717AF

Accessibility & contrast

On white

15.69
#400943 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400943
15.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400943#FFFFFF#000000##FFFFFF
##4009431.0015.691.3415.69
#FFFFFF15.691.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #400943;
/* rgb */ color: rgb(64, 9, 67);
/* oklch */ color: oklch(27.1% 0.111 325.8);
Tailwind
colors: {
  custom: {
    50: '#775077',
    500: '#400943',
    950: '#000000',
  },
}
SCSS
$custom: #400943;
$custom-light: #775077;
$custom-dark: #000000;
JSON
{
  "hex": "#400943",
  "rgb": {
    "r": 64,
    "g": 9,
    "b": 67
  },
  "hsl": {
    "h": 296.897,
    "s": 76.316,
    "l": 14.902
  },
  "oklch": {
    "l": 0.27138,
    "c": 0.11107,
    "h": 325.8
  },
  "luminance": 0.01691
}

Semantic roles & 50–950 ramp

primary
#400943
secondary
#2C8127
accent
#F3353F
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090209
muted
#7B787B

Preview Lab

Preview with #400943

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

Preview Lab → · Contrast checker → · Palette generator →

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