#4E2EC0

A color in the Violet family

#4e2ec0 is a color in the Violet family: RGB(78, 46, 192), HSL(253°, 61%, 47%), CMYK(59%, 76%, 0%, 25%). Closest named color: darkslateblue. Contrast is 8.48:1 on white and 2.48:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#4e2ec0
RGBrgb(78 46 192)
RGB (legacy)rgb(78, 46, 192)
RGB %rgb(31% 18% 75%)
HSLhsl(253 61% 47%)
HSV / HSBhsv(253, 76%, 75%)
HWBhwb(253 18% 25%)
CMYKcmyk(59%, 76%, 0%, 25%)
CIELAB (D50)lab(31.46 44.47 -72.64)
LCHlch(31.46 85.17 301.48)
OKLaboklab(0.4426 0.05 -0.2046)
OKLCHoklch(0.4426 0.2106 283.74)
Decimal5123776

Properties

Color ToneViolet
Closest named colordarkslateblue ΔE 9.1
Closest web-safe color#6633cc
Hue253°
Saturation (HSL / HSV)61% / 76%
Lightness (HSL)47%
Brightness or Value (HSV)75%
Luminance (Rec.601 / Rec.709)28% / 25%
Relative luminance (WCAG)0.0738
Red / Green / Blue78 / 46 / 192

WCAG 2.2 Contrast Ratio

On White (#ffffff)
8.48:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
2.48: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 88.2 / -13.9 · As background with white / black text: Lc -92.9 / 15.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: #4e2ec0;
  --color-brand-oklch: oklch(44.26% 0.2106 283.74);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(78 46 192 / 50%); }
/* Tailwind CSS */
<div class="bg-[#4e2ec0] text-[#4e2ec0] border-[#4e2ec0]">