#400A57

A color in the Purple, Crimson, Magenta family

#400a57 is a color in the Purple, Crimson, Magenta family: RGB(64, 10, 87), HSL(282°, 79%, 19%), CMYK(26%, 89%, 0%, 66%). Closest named color: indigo. Contrast is 15.01:1 on white and 1.4:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#400a57
RGBrgb(64 10 87)
RGB (legacy)rgb(64, 10, 87)
RGB %rgb(25% 4% 34%)
HSLhsl(282 79% 19%)
HSV / HSBhsv(282, 89%, 34%)
HWBhwb(282 4% 66%)
CMYKcmyk(26%, 89%, 0%, 66%)
CIELAB (D50)lab(15.15 34.63 -33.79)
LCHlch(15.15 48.38 315.71)
OKLaboklab(0.2882 0.0875 -0.0949)
OKLCHoklch(0.2882 0.1291 312.68)
Decimal4196951

Properties

Color TonePurple, Crimson, Magenta
Closest named colorindigo ΔE 7.7
Closest web-safe color#330066
Hue282°
Saturation (HSL / HSV)79% / 89%
Lightness (HSL)19%
Brightness or Value (HSV)34%
Luminance (Rec.601 / Rec.709)14% / 11%
Relative luminance (WCAG)0.02
Red / Green / Blue64 / 10 / 87

WCAG 2.2 Contrast Ratio

On White (#ffffff)
15.01:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.40:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 101 / 0 · As background with white / black text: Lc -104 / 0

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #400a57;
  --color-brand-oklch: oklch(28.82% 0.1291 312.68);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(64 10 87 / 50%); }
/* Tailwind CSS */
<div class="bg-[#400a57] text-[#400a57] border-[#400a57]">