#4E2FA5

A color in the Violet family

#4e2fa5 is a color in the Violet family: RGB(78, 47, 165), HSL(256°, 56%, 42%), CMYK(53%, 72%, 0%, 35%). Closest named color: darkslateblue. Contrast is 9.24:1 on white and 2.27:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#4e2fa5
RGBrgb(78 47 165)
RGB (legacy)rgb(78, 47, 165)
RGB %rgb(31% 18% 65%)
HSLhsl(256 56% 42%)
HSV / HSBhsv(256, 72%, 65%)
HWBhwb(256 18% 35%)
CMYKcmyk(53%, 72%, 0%, 35%)
CIELAB (D50)lab(29.45 37.44 -59.89)
LCHlch(29.45 70.63 302.01)
OKLaboklab(0.4185 0.0556 -0.1687)
OKLCHoklch(0.4185 0.1777 288.25)
Decimal5124005

Properties

Color ToneViolet
Closest named colordarkslateblue ΔE 5.3
Closest web-safe color#663399
Hue256°
Saturation (HSL / HSV)56% / 72%
Lightness (HSL)42%
Brightness or Value (HSV)65%
Luminance (Rec.601 / Rec.709)27% / 24%
Relative luminance (WCAG)0.0637
Red / Green / Blue78 / 47 / 165

WCAG 2.2 Contrast Ratio

On White (#ffffff)
9.24:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
2.27: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 90.6 / -11.7 · As background with white / black text: Lc -95 / 13.4

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: #4e2fa5;
  --color-brand-oklch: oklch(41.85% 0.1777 288.25);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(78 47 165 / 50%); }
/* Tailwind CSS */
<div class="bg-[#4e2fa5] text-[#4e2fa5] border-[#4e2fa5]">