#4E2FDA

A color in the Violet family

#4e2fda is a color in the Violet family: RGB(78, 47, 218), HSL(251°, 70%, 52%), CMYK(64%, 78%, 0%, 15%). Closest named color: slateblue. Contrast is 7.66:1 on white and 2.74:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#4e2fda
RGBrgb(78 47 218)
RGB (legacy)rgb(78, 47, 218)
RGB %rgb(31% 18% 85%)
HSLhsl(251 70% 52%)
HSV / HSBhsv(251, 78%, 85%)
HWBhwb(251 18% 15%)
CMYKcmyk(64%, 78%, 0%, 15%)
CIELAB (D50)lab(33.95 50.28 -83.63)
LCHlch(33.95 97.58 301.01)
OKLaboklab(0.4697 0.0424 -0.2354)
OKLCHoklch(0.4697 0.2392 280.2)
Decimal5124058

Properties

Color ToneViolet
Closest named colorslateblue ΔE 10.2
Closest web-safe color#6633cc
Hue251°
Saturation (HSL / HSV)70% / 78%
Lightness (HSL)52%
Brightness or Value (HSV)85%
Luminance (Rec.601 / Rec.709)30% / 26%
Relative luminance (WCAG)0.0871
Red / Green / Blue78 / 47 / 218

WCAG 2.2 Contrast Ratio

On White (#ffffff)
7.66:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
2.74: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 85.4 / -16.6 · As background with white / black text: Lc -90.3 / 18.6

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: #4e2fda;
  --color-brand-oklch: oklch(46.97% 0.2392 280.2);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(78 47 218 / 50%); }
/* Tailwind CSS */
<div class="bg-[#4e2fda] text-[#4e2fda] border-[#4e2fda]">