#4E2DCF

A color in the Violet family

#4e2dcf is a color in the Violet family: RGB(78, 45, 207), HSL(252°, 64%, 49%), CMYK(62%, 78%, 0%, 19%). Closest named color: slateblue. Contrast is 8.08:1 on white and 2.6:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#4e2dcf
RGBrgb(78 45 207)
RGB (legacy)rgb(78, 45, 207)
RGB %rgb(31% 18% 81%)
HSLhsl(252 64% 49%)
HSV / HSBhsv(252, 78%, 81%)
HWBhwb(252 18% 19%)
CMYKcmyk(62%, 78%, 0%, 19%)
CIELAB (D50)lab(32.61 48.55 -79.49)
LCHlch(32.61 93.15 301.42)
OKLaboklab(0.4564 0.0465 -0.2238)
OKLCHoklch(0.4564 0.2286 281.74)
Decimal5123535

Properties

Color ToneViolet
Closest named colorslateblue ΔE 10.5
Closest web-safe color#6633cc
Hue252°
Saturation (HSL / HSV)64% / 78%
Lightness (HSL)49%
Brightness or Value (HSV)81%
Luminance (Rec.601 / Rec.709)29% / 25%
Relative luminance (WCAG)0.08
Red / Green / Blue78 / 45 / 207

WCAG 2.2 Contrast Ratio

On White (#ffffff)
8.08:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
2.60: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.8 / -15.3 · As background with white / black text: Lc -91.6 / 17.2

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: #4e2dcf;
  --color-brand-oklch: oklch(45.64% 0.2286 281.74);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(78 45 207 / 50%); }
/* Tailwind CSS */
<div class="bg-[#4e2dcf] text-[#4e2dcf] border-[#4e2dcf]">