#400C57#400C57

#400C57 is a dark, vivid purple. Relative luminance 0.020; OKLCH L 29.0% C 0.127 H 312.5°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#400C57
RGBrgb(64, 12, 87)
HSLhsl(282, 76%, 19%)
HSVhsv(282, 86%, 34%)
CMYKcmyk(26.4%, 86.2%, 0%, 65.9%)
CIE-LABlab(15.70, 36.77, -33.10)
CIE-LCHlch(15.70, 49.48, 318.01°)
OKLaboklab(28.99% 0.0858 -0.0937)
OKLCHoklch(28.99% 0.127 312.5)
XYZxyz(3.9658, 2.0412, 9.2001)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C57 #23570C
analogous
#1B0C57 #400C57 #570C49
triadic
#400C57 #57400C #0C5740
tetradic
#400C57 #571B0C #23570C #0C4957
square
#400C57 #571B0C #23570C #0C4957
split-complementary
#400C57 #49570C #0C571B
monochromatic
#14041B #180521 #400C57 #68138D #8F1BC3

Accessibility & contrast

On white

14.91
#400C57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400C57
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C57#FFFFFF#000000##FFFFFF
##400C571.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002559
Deuteranopia (green-blind)
#012855
Tritanopia (blue-blind)
#3D1F32
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #400c57;
/* rgb */ color: rgb(64, 12, 87);
/* oklch */ color: oklch(29.0% 0.127 312.5);
Tailwind
colors: {
  custom: {
    50: '#785287',
    500: '#400c57',
    950: '#000000',
  },
}
SCSS
$custom: #400c57;
$custom-light: #785287;
$custom-dark: #000000;
JSON
{
  "hex": "#400c57",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 87
  },
  "hsl": {
    "h": 281.6,
    "s": 75.758,
    "l": 19.412
  },
  "oklch": {
    "l": 0.28992,
    "c": 0.12709,
    "h": 312.5
  },
  "luminance": 0.02041
}

Semantic roles & 50–950 ramp

primary
#400C57
secondary
#4C922D
accent
#F2356F
background
#F7F4F8
surface
#EEE7EF
border
#C9C3CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #400C57

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

Preview Lab → · Contrast checker → · Palette generator →

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