#4E2EA0

A color in the Violet family

#4e2ea0 is a color in the Violet family: RGB(78, 46, 160), HSL(257°, 55%, 40%), CMYK(51%, 71%, 0%, 37%). Closest named color: darkslateblue. Contrast is 9.45:1 on white and 2.22:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#4e2ea0
RGBrgb(78 46 160)
RGB (legacy)rgb(78, 46, 160)
RGB %rgb(31% 18% 63%)
HSLhsl(257 55% 40%)
HSV / HSBhsv(257, 71%, 63%)
HWBhwb(257 18% 37%)
CMYKcmyk(51%, 71%, 0%, 37%)
CIELAB (D50)lab(28.86 36.77 -57.83)
LCHlch(28.86 68.53 302.45)
OKLaboklab(0.4126 0.0576 -0.1629)
OKLCHoklch(0.4126 0.1728 289.46)
Decimal5123744

Properties

Color ToneViolet
Closest named colordarkslateblue ΔE 4.9
Closest web-safe color#663399
Hue257°
Saturation (HSL / HSV)55% / 71%
Lightness (HSL)40%
Brightness or Value (HSV)63%
Luminance (Rec.601 / Rec.709)27% / 24%
Relative luminance (WCAG)0.0611
Red / Green / Blue78 / 46 / 160

WCAG 2.2 Contrast Ratio

On White (#ffffff)
9.45:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
2.22: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 91.2 / -11.2 · As background with white / black text: Lc -95.5 / 12.8

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: #4e2ea0;
  --color-brand-oklch: oklch(41.26% 0.1728 289.46);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(78 46 160 / 50%); }
/* Tailwind CSS */
<div class="bg-[#4e2ea0] text-[#4e2ea0] border-[#4e2ea0]">