#400C56#400C56

#400C56 is a dark, vivid purple. Relative luminance 0.020; OKLCH L 28.9% C 0.126 H 313.0°. Best body text is #FFFFFF at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#400C56
RGBrgb(64, 12, 86)
HSLhsl(282, 76%, 19%)
HSVhsv(282, 86%, 34%)
CMYKcmyk(25.6%, 86%, 0%, 66.3%)
CIE-LABlab(15.62, 36.55, -32.56)
CIE-LCHlch(15.62, 48.95, 318.30°)
OKLaboklab(28.91% 0.086 -0.0922)
OKLCHoklch(28.91% 0.126 313)
XYZxyz(3.9252, 2.0249, 8.9864)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C56 #22560C
analogous
#1B0C56 #400C56 #560C47
triadic
#400C56 #56400C #0C5640
tetradic
#400C56 #561B0C #22560C #0C4756
square
#400C56 #561B0C #22560C #0C4756
split-complementary
#400C56 #47560C #0C561B
monochromatic
#14041B #180520 #400C56 #68138C #901BC1

Accessibility & contrast

On white

14.95
#400C56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#400C56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400C56
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C56#FFFFFF#000000##FFFFFF
##400C561.0014.951.4114.95
#FFFFFF14.951.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002458
Deuteranopia (green-blind)
#032854
Tritanopia (blue-blind)
#3E1E31
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #400c56;
/* rgb */ color: rgb(64, 12, 86);
/* oklch */ color: oklch(28.9% 0.126 313.0);
Tailwind
colors: {
  custom: {
    50: '#785286',
    500: '#400c56',
    950: '#000000',
  },
}
SCSS
$custom: #400c56;
$custom-light: #785286;
$custom-dark: #000000;
JSON
{
  "hex": "#400c56",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 86
  },
  "hsl": {
    "h": 282.162,
    "s": 75.51,
    "l": 19.216
  },
  "oklch": {
    "l": 0.28906,
    "c": 0.12608,
    "h": 313
  },
  "luminance": 0.02025
}

Semantic roles & 50–950 ramp

primary
#400C56
secondary
#4B912D
accent
#F2366E
background
#F7F4F8
surface
#EEE7EF
border
#C9C3CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #400C56

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

Preview Lab → · Contrast checker → · Palette generator →

#400C56 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva