#400C51#400C51

#400C51 is a dark, vivid purple. Relative luminance 0.019; OKLCH L 28.5% C 0.121 H 316.0°. Best body text is #FFFFFF at 15.11:1 contrast (WCAG AA passes).

Color values

HEX#400C51
RGBrgb(64, 12, 81)
HSLhsl(285, 74%, 18%)
HSVhsv(285, 85%, 32%)
CMYKcmyk(21%, 85.2%, 0%, 68.2%)
CIE-LABlab(15.21, 35.41, -29.83)
CIE-LCHlch(15.21, 46.30, 319.89°)
OKLaboklab(28.49% 0.0871 -0.0841)
OKLCHoklch(28.49% 0.121 316)
XYZxyz(3.7308, 1.9472, 7.9623)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C51 #1D510C
analogous
#1D0C51 #400C51 #510C3F
triadic
#400C51 #51400C #0C5140
tetradic
#400C51 #511D0C #1D510C #0C3F51
square
#400C51 #511D0C #1D510C #0C3F51
split-complementary
#400C51 #3F510C #0C511D
monochromatic
#15041B #16041C #400C51 #6A1486 #941CBC

Accessibility & contrast

On white

15.11
#400C51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#400C51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400C51
15.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C51#FFFFFF#000000##FFFFFF
##400C511.0015.111.3915.11
#FFFFFF15.111.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002353
Deuteranopia (green-blind)
#0B2750
Tritanopia (blue-blind)
#3F1C2E
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #400c51;
/* rgb */ color: rgb(64, 12, 81);
/* oklch */ color: oklch(28.5% 0.121 316.0);
Tailwind
colors: {
  custom: {
    50: '#785282',
    500: '#400c51',
    950: '#000000',
  },
}
SCSS
$custom: #400c51;
$custom-light: #785282;
$custom-dark: #000000;
JSON
{
  "hex": "#400c51",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 81
  },
  "hsl": {
    "h": 285.217,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.28489,
    "c": 0.1211,
    "h": 316
  },
  "luminance": 0.01947
}

Semantic roles & 50–950 ramp

primary
#400C51
secondary
#448C2C
accent
#F13765
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#09020A
muted
#7B787C

Preview Lab

Preview with #400C51

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

Preview Lab → · Contrast checker → · Palette generator →

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