#400F57#400F57

#400F57 is a dark, vivid purple. Relative luminance 0.021; OKLCH L 29.3% C 0.124 H 312.1°. Best body text is #FFFFFF at 14.75:1 contrast (WCAG AA passes).

Color values

HEX#400F57
RGBrgb(64, 15, 87)
HSLhsl(281, 71%, 20%)
HSVhsv(281, 83%, 34%)
CMYKcmyk(26.4%, 82.8%, 0%, 65.9%)
CIE-LABlab(16.10, 35.61, -32.45)
CIE-LCHlch(16.10, 48.18, 317.66°)
OKLaboklab(29.28% 0.083 -0.0918)
OKLCHoklch(29.28% 0.124 312.1)
XYZxyz(4.0052, 2.1199, 9.2132)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F57 #26570F
analogous
#1C0F57 #400F57 #570F4A
triadic
#400F57 #57400F #0F5740
tetradic
#400F57 #571C0F #26570F #0F4A57
square
#400F57 #571C0F #26570F #0F4A57
split-complementary
#400F57 #4A570F #0F571C
monochromatic
#13051A #1A0623 #400F57 #66188B #8D21BF

Accessibility & contrast

On white

14.75
#400F57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#400F57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400F57
14.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F57#FFFFFF#000000##FFFFFF
##400F571.0014.751.4214.75
#FFFFFF14.751.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002659
Deuteranopia (green-blind)
#042955
Tritanopia (blue-blind)
#3D2033
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #400f57;
/* rgb */ color: rgb(64, 15, 87);
/* oklch */ color: oklch(29.3% 0.124 312.1);
Tailwind
colors: {
  custom: {
    50: '#785487',
    500: '#400f57',
    950: '#000000',
  },
}
SCSS
$custom: #400f57;
$custom-light: #785487;
$custom-dark: #000000;
JSON
{
  "hex": "#400f57",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 87
  },
  "hsl": {
    "h": 280.833,
    "s": 70.588,
    "l": 20
  },
  "oklch": {
    "l": 0.29275,
    "c": 0.12378,
    "h": 312.1
  },
  "luminance": 0.0212
}

Semantic roles & 50–950 ramp

primary
#400F57
secondary
#509131
accent
#ED3A74
background
#F7F5F8
surface
#EEE9EF
border
#C9C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #400F57

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

Preview Lab → · Contrast checker → · Palette generator →

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