#4E2FE2

A color in the Violet family

#4e2fe2 is a color in the Violet family: RGB(78, 47, 226), HSL(250°, 76%, 54%), CMYK(65%, 79%, 0%, 11%). Closest named color: blue. Contrast is 7.42:1 on white and 2.83:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#4e2fe2
RGBrgb(78 47 226)
RGB (legacy)rgb(78, 47, 226)
RGB %rgb(31% 18% 89%)
HSLhsl(250 76% 54%)
HSV / HSBhsv(250, 79%, 89%)
HWBhwb(250 18% 11%)
CMYKcmyk(65%, 79%, 0%, 11%)
CIELAB (D50)lab(34.69 52.19 -86.99)
LCHlch(34.69 101.45 300.96)
OKLaboklab(0.4779 0.0401 -0.2447)
OKLCHoklch(0.4779 0.248 279.31)
Decimal5124066

Properties

Color ToneViolet
Closest named colorblue ΔE 10.2
Closest web-safe color#6633cc
Hue250°
Saturation (HSL / HSV)76% / 79%
Lightness (HSL)54%
Brightness or Value (HSV)89%
Luminance (Rec.601 / Rec.709)30% / 26%
Relative luminance (WCAG)0.0914
Red / Green / Blue78 / 47 / 226

WCAG 2.2 Contrast Ratio

On White (#ffffff)
7.42:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
2.83: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 84.5 / -17.5 · As background with white / black text: Lc -89.4 / 19.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: #4e2fe2;
  --color-brand-oklch: oklch(47.79% 0.248 279.31);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(78 47 226 / 50%); }
/* Tailwind CSS */
<div class="bg-[#4e2fe2] text-[#4e2fe2] border-[#4e2fe2]">