#4E2CA7

A color in the Violet family

#4e2ca7 is a color in the Violet family: RGB(78, 44, 167), HSL(257°, 58%, 41%), CMYK(53%, 74%, 0%, 35%). Closest named color: darkslateblue. Contrast is 9.37:1 on white and 2.24:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#4e2ca7
RGBrgb(78 44 167)
RGB (legacy)rgb(78, 44, 167)
RGB %rgb(31% 17% 65%)
HSLhsl(257 58% 41%)
HSV / HSBhsv(257, 74%, 65%)
HWBhwb(257 17% 35%)
CMYKcmyk(53%, 74%, 0%, 35%)
CIELAB (D50)lab(29.01 39.48 -61.8)
LCHlch(29.01 73.33 302.57)
OKLaboklab(0.4163 0.0578 -0.1741)
OKLCHoklch(0.4163 0.1835 288.37)
Decimal5123239

Properties

Color ToneViolet
Closest named colordarkslateblue ΔE 5.9
Closest web-safe color#663399
Hue257°
Saturation (HSL / HSV)58% / 74%
Lightness (HSL)41%
Brightness or Value (HSV)65%
Luminance (Rec.601 / Rec.709)27% / 24%
Relative luminance (WCAG)0.0621
Red / Green / Blue78 / 44 / 167

WCAG 2.2 Contrast Ratio

On White (#ffffff)
9.37:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
2.24: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.9 / -11.5 · As background with white / black text: Lc -95.2 / 13.1

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: #4e2ca7;
  --color-brand-oklch: oklch(41.63% 0.1835 288.37);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(78 44 167 / 50%); }
/* Tailwind CSS */
<div class="bg-[#4e2ca7] text-[#4e2ca7] border-[#4e2ca7]">