#4E2ECC

A color in the Violet family

#4e2ecc is a color in the Violet family: RGB(78, 46, 204), HSL(252°, 63%, 49%), CMYK(62%, 77%, 0%, 20%). Closest named color: slateblue. Contrast is 8.12:1 on white and 2.59:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#4e2ecc
RGBrgb(78 46 204)
RGB (legacy)rgb(78, 46, 204)
RGB %rgb(31% 18% 80%)
HSLhsl(252 63% 49%)
HSV / HSBhsv(252, 77%, 80%)
HWBhwb(252 18% 20%)
CMYKcmyk(62%, 77%, 0%, 20%)
CIELAB (D50)lab(32.51 47.37 -77.92)
LCHlch(32.51 91.19 301.3)
OKLaboklab(0.4545 0.0468 -0.2194)
OKLCHoklch(0.4545 0.2243 282.04)
Decimal5123788

Properties

Color ToneViolet
Closest named colorslateblue ΔE 10.4
Closest web-safe color#6633cc
Hue252°
Saturation (HSL / HSV)63% / 77%
Lightness (HSL)49%
Brightness or Value (HSV)80%
Luminance (Rec.601 / Rec.709)29% / 25%
Relative luminance (WCAG)0.0793
Red / Green / Blue78 / 46 / 204

WCAG 2.2 Contrast Ratio

On White (#ffffff)
8.12:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
2.59: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 87 / -15.1 · As background with white / black text: Lc -91.7 / 17

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