#4E42E1

A color in the Violet family

#4e42e1 is a color in the Violet family: RGB(78, 66, 225), HSL(245°, 73%, 57%), CMYK(65%, 71%, 0%, 12%). Closest named color: slateblue. Contrast is 6.58:1 on white and 3.19:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#4e42e1
RGBrgb(78 66 225)
RGB (legacy)rgb(78, 66, 225)
RGB %rgb(31% 26% 88%)
HSLhsl(245 73% 57%)
HSV / HSBhsv(245, 71%, 88%)
HWBhwb(245 26% 12%)
CMYKcmyk(65%, 71%, 0%, 12%)
CIELAB (D50)lab(38.14 42.51 -80.73)
LCHlch(38.14 91.24 297.77)
OKLaboklab(0.5005 0.0299 -0.2277)
OKLCHoklch(0.5005 0.2296 277.48)
Decimal5128929

Properties

Color ToneViolet
Closest named colorslateblue ΔE 7.8
Closest web-safe color#6633cc
Hue245°
Saturation (HSL / HSV)73% / 71%
Lightness (HSL)57%
Brightness or Value (HSV)88%
Luminance (Rec.601 / Rec.709)34% / 31%
Relative luminance (WCAG)0.1095
Red / Green / Blue78 / 66 / 225

WCAG 2.2 Contrast Ratio

On White (#ffffff)
6.58:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
3.19:1
AA Normal (4.5:1) · FailAA Large (3:1) · PassAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 81.7 / -20.2 · As background with white / black text: Lc -86.8 / 22.3

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: #4e42e1;
  --color-brand-oklch: oklch(50.05% 0.2296 277.48);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(78 66 225 / 50%); }
/* Tailwind CSS */
<div class="bg-[#4e42e1] text-[#4e42e1] border-[#4e42e1]">