#400A52

A color in the Purple, Crimson, Magenta family

#400a52 is a color in the Purple, Crimson, Magenta family: RGB(64, 10, 82), HSL(285°, 78%, 18%), CMYK(22%, 88%, 0%, 68%). Closest named color: indigo. Contrast is 15.18:1 on white and 1.38:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#400a52
RGBrgb(64 10 82)
RGB (legacy)rgb(64, 10, 82)
RGB %rgb(25% 4% 32%)
HSLhsl(285 78% 18%)
HSV / HSBhsv(285, 88%, 32%)
HWBhwb(285 4% 68%)
CMYKcmyk(22%, 88%, 0%, 68%)
CIELAB (D50)lab(14.79 33.78 -30.98)
LCHlch(14.79 45.83 317.48)
OKLaboklab(0.284 0.0887 -0.0869)
OKLCHoklch(0.284 0.1242 315.58)
Decimal4196946

Properties

Color TonePurple, Crimson, Magenta
Closest named colorindigo ΔE 8.6
Closest web-safe color#330066
Hue285°
Saturation (HSL / HSV)78% / 88%
Lightness (HSL)18%
Brightness or Value (HSV)32%
Luminance (Rec.601 / Rec.709)13% / 10%
Relative luminance (WCAG)0.0192
Red / Green / Blue64 / 10 / 82

WCAG 2.2 Contrast Ratio

On White (#ffffff)
15.18:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.38: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.3 / 0 · As background with white / black text: Lc -104.2 / 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: #400a52;
  --color-brand-oklch: oklch(28.4% 0.1242 315.58);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(64 10 82 / 50%); }
/* Tailwind CSS */
<div class="bg-[#400a52] text-[#400a52] border-[#400a52]">