#400A5F

A color in the Purple, Crimson, Magenta family

#400a5f is a color in the Purple, Crimson, Magenta family: RGB(64, 10, 95), HSL(278°, 81%, 21%), CMYK(33%, 89%, 0%, 63%). Closest named color: indigo. Contrast is 14.72:1 on white and 1.43:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#400a5f
RGBrgb(64 10 95)
RGB (legacy)rgb(64, 10, 95)
RGB %rgb(25% 4% 37%)
HSLhsl(278 81% 21%)
HSV / HSBhsv(278, 89%, 37%)
HWBhwb(278 4% 63%)
CMYKcmyk(33%, 89%, 0%, 63%)
CIELAB (D50)lab(15.76 36.05 -38.16)
LCHlch(15.76 52.49 313.37)
OKLaboklab(0.2954 0.0851 -0.1073)
OKLCHoklch(0.2954 0.1369 308.44)
Decimal4196959

Properties

Color TonePurple, Crimson, Magenta
Closest named colorindigo ΔE 6.4
Closest web-safe color#330066
Hue278°
Saturation (HSL / HSV)81% / 89%
Lightness (HSL)21%
Brightness or Value (HSV)37%
Luminance (Rec.601 / Rec.709)14% / 11%
Relative luminance (WCAG)0.0213
Red / Green / Blue64 / 10 / 95

WCAG 2.2 Contrast Ratio

On White (#ffffff)
14.72:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.43: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 100.6 / 0 · As background with white / black text: Lc -103.6 / 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: #400a5f;
  --color-brand-oklch: oklch(29.54% 0.1369 308.44);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(64 10 95 / 50%); }
/* Tailwind CSS */
<div class="bg-[#400a5f] text-[#400a5f] border-[#400a5f]">