#4E2CD3

A color in the Violet family

#4e2cd3 is a color in the Violet family: RGB(78, 44, 211), HSL(252°, 65%, 50%), CMYK(63%, 79%, 0%, 17%). Closest named color: slateblue. Contrast is 8:1 on white and 2.62:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#4e2cd3
RGBrgb(78 44 211)
RGB (legacy)rgb(78, 44, 211)
RGB %rgb(31% 17% 83%)
HSLhsl(252 65% 50%)
HSV / HSBhsv(252, 79%, 83%)
HWBhwb(252 17% 17%)
CMYKcmyk(63%, 79%, 0%, 17%)
CIELAB (D50)lab(32.81 49.96 -81.48)
LCHlch(32.81 95.58 301.51)
OKLaboklab(0.4593 0.0459 -0.2293)
OKLCHoklch(0.4593 0.2339 281.32)
Decimal5123283

Properties

Color ToneViolet
Closest named colorslateblue ΔE 10.6
Closest web-safe color#6633cc
Hue252°
Saturation (HSL / HSV)65% / 79%
Lightness (HSL)50%
Brightness or Value (HSV)83%
Luminance (Rec.601 / Rec.709)29% / 25%
Relative luminance (WCAG)0.0812
Red / Green / Blue78 / 44 / 211

WCAG 2.2 Contrast Ratio

On White (#ffffff)
8.00:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
2.62: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 86.5 / -15.6 · As background with white / black text: Lc -91.3 / 17.5

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