#400A91

A color in the Violet family

#400a91 is a color in the Violet family: RGB(64, 10, 145), HSL(264°, 87%, 30%), CMYK(56%, 93%, 0%, 43%). Closest named color: indigo. Contrast is 12.57:1 on white and 1.67:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#400a91
RGBrgb(64 10 145)
RGB (legacy)rgb(64, 10, 145)
RGB %rgb(25% 4% 57%)
HSLhsl(264 87% 30%)
HSV / HSBhsv(264, 93%, 57%)
HWBhwb(264 4% 43%)
CMYKcmyk(56%, 93%, 0%, 43%)
CIELAB (D50)lab(20.34 45.84 -62.71)
LCHlch(20.34 77.67 306.17)
OKLaboklab(0.3468 0.0642 -0.1761)
OKLCHoklch(0.3468 0.1875 290.02)
Decimal4197009

Properties

Color ToneViolet
Closest named colorindigo ΔE 3.9
Closest web-safe color#330099
Hue264°
Saturation (HSL / HSV)87% / 93%
Lightness (HSL)30%
Brightness or Value (HSV)57%
Luminance (Rec.601 / Rec.709)16% / 12%
Relative luminance (WCAG)0.0335
Red / Green / Blue64 / 10 / 145

WCAG 2.2 Contrast Ratio

On White (#ffffff)
12.57:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.67: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 96.9 / 0 · As background with white / black text: Lc -100.5 / 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: #400a91;
  --color-brand-oklch: oklch(34.68% 0.1875 290.02);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(64 10 145 / 50%); }
/* Tailwind CSS */
<div class="bg-[#400a91] text-[#400a91] border-[#400a91]">