#400C53#400C53

#400C53 is a dark, vivid purple. Relative luminance 0.020; OKLCH L 28.7% C 0.123 H 314.8°. Best body text is #FFFFFF at 15.05:1 contrast (WCAG AA passes).

Color values

HEX#400C53
RGBrgb(64, 12, 83)
HSLhsl(284, 75%, 19%)
HSVhsv(284, 86%, 33%)
CMYKcmyk(22.9%, 85.5%, 0%, 67.5%)
CIE-LABlab(15.37, 35.86, -30.93)
CIE-LCHlch(15.37, 47.36, 319.22°)
OKLaboklab(28.65% 0.0867 -0.0874)
OKLCHoklch(28.65% 0.123 314.8)
XYZxyz(3.8069, 1.9776, 8.3631)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C53 #1F530C
analogous
#1C0C53 #400C53 #530C42
triadic
#400C53 #53400C #0C5340
tetradic
#400C53 #531C0C #1F530C #0C4253
square
#400C53 #531C0C #1F530C #0C4253
split-complementary
#400C53 #42530C #0C531C
monochromatic
#15041B #17041E #400C53 #691488 #921BBE

Accessibility & contrast

On white

15.05
#400C53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#400C53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400C53
15.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C53#FFFFFF#000000##FFFFFF
##400C531.0015.051.4015.05
#FFFFFF15.051.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002455
Deuteranopia (green-blind)
#082852
Tritanopia (blue-blind)
#3E1D30
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #400c53;
/* rgb */ color: rgb(64, 12, 83);
/* oklch */ color: oklch(28.7% 0.123 314.8);
Tailwind
colors: {
  custom: {
    50: '#785284',
    500: '#400c53',
    950: '#000000',
  },
}
SCSS
$custom: #400c53;
$custom-light: #785284;
$custom-dark: #000000;
JSON
{
  "hex": "#400c53",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 83
  },
  "hsl": {
    "h": 283.944,
    "s": 74.737,
    "l": 18.627
  },
  "oklch": {
    "l": 0.28654,
    "c": 0.12308,
    "h": 314.8
  },
  "luminance": 0.01977
}

Semantic roles & 50–950 ramp

primary
#400C53
secondary
#478E2D
accent
#F13668
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#09020B
muted
#7B787C

Preview Lab

Preview with #400C53

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

Preview Lab → · Contrast checker → · Palette generator →

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