#4E2D7E

A color in the Violet family

#4e2d7e is a color in the Violet family: RGB(78, 45, 126), HSL(264°, 47%, 34%), CMYK(38%, 64%, 0%, 51%). Closest named color: darkslateblue. Contrast is 10.5:1 on white and 2:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#4e2d7e
RGBrgb(78 45 126)
RGB (legacy)rgb(78, 45, 126)
RGB %rgb(31% 18% 49%)
HSLhsl(264 47% 34%)
HSV / HSBhsv(264, 64%, 49%)
HWBhwb(264 18% 51%)
CMYKcmyk(38%, 64%, 0%, 51%)
CIELAB (D50)lab(26.28 29.46 -41.06)
LCHlch(26.28 50.53 305.66)
OKLaboklab(0.3828 0.0633 -0.1153)
OKLCHoklch(0.3828 0.1315 298.78)
Decimal5123454

Properties

Color ToneViolet
Closest named colordarkslateblue ΔE 4.3
Closest web-safe color#663366
Hue264°
Saturation (HSL / HSV)47% / 64%
Lightness (HSL)34%
Brightness or Value (HSV)49%
Luminance (Rec.601 / Rec.709)25% / 23%
Relative luminance (WCAG)0.05
Red / Green / Blue78 / 45 / 126

WCAG 2.2 Contrast Ratio

On White (#ffffff)
10.50:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
2.00: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 93.9 / -8.6 · As background with white / black text: Lc -98 / 10

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