#5400A8

A color in the Violet family

#5400a8 is a color in the Violet family: RGB(84, 0, 168), HSL(270°, 100%, 33%), CMYK(50%, 100%, 0%, 34%). Closest named color: indigo. Contrast is 10.81:1 on white and 1.94:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#5400a8
RGBrgb(84 0 168)
RGB (legacy)rgb(84, 0, 168)
RGB %rgb(33% 0% 66%)
HSLhsl(270 100% 33%)
HSV / HSBhsv(270, 100%, 66%)
HWBhwb(270 0% 34%)
CMYKcmyk(50%, 100%, 0%, 34%)
CIELAB (D50)lab(24.78 54.88 -69.33)
LCHlch(24.78 88.42 308.36)
OKLaboklab(0.3904 0.0902 -0.1947)
OKLCHoklch(0.3904 0.2146 294.87)
Decimal5505192

Properties

Color ToneViolet
Closest named colorindigo ΔE 6.7
Closest web-safe color#660099
Hue270°
Saturation (HSL / HSV)100% / 100%
Lightness (HSL)33%
Brightness or Value (HSV)66%
Luminance (Rec.601 / Rec.709)17% / 12%
Relative luminance (WCAG)0.0471
Red / Green / Blue84 / 0 / 168

WCAG 2.2 Contrast Ratio

On White (#ffffff)
10.81:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.94: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 92.8 / -9.7 · As background with white / black text: Lc -96.9 / 11.2

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: #5400a8;
  --color-brand-oklch: oklch(39.04% 0.2146 294.87);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(84 0 168 / 50%); }
/* Tailwind CSS */
<div class="bg-[#5400a8] text-[#5400a8] border-[#5400a8]">