#7828D2

A color in the Violet family

#7828d2 is a color in the Violet family: RGB(120, 40, 210), HSL(268°, 68%, 49%), CMYK(43%, 81%, 0%, 18%). Closest named color: blueviolet. Contrast is 6.92:1 on white and 3.03:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#7828d2
RGBrgb(120 40 210)
RGB (legacy)rgb(120, 40, 210)
RGB %rgb(47% 16% 82%)
HSLhsl(268 68% 49%)
HSV / HSBhsv(268, 81%, 82%)
HWBhwb(268 16% 18%)
CMYKcmyk(43%, 81%, 0%, 18%)
CIELAB (D50)lab(37.13 57.96 -73.59)
LCHlch(37.13 93.67 308.22)
OKLaboklab(0.4965 0.1114 -0.2071)
OKLCHoklch(0.4965 0.2351 298.27)
Decimal7874770

Properties

Color ToneViolet
Closest named colorblueviolet ΔE 4.2
Closest web-safe color#6633cc
Hue268°
Saturation (HSL / HSV)68% / 81%
Lightness (HSL)49%
Brightness or Value (HSV)82%
Luminance (Rec.601 / Rec.709)33% / 27%
Relative luminance (WCAG)0.1016
Red / Green / Blue120 / 40 / 210

WCAG 2.2 Contrast Ratio

On White (#ffffff)
6.92:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
3.03:1
AA Normal (4.5:1) · FailAA Large (3:1) · PassAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 82.7 / -19.2 · As background with white / black text: Lc -87.7 / 21.4

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: #7828d2;
  --color-brand-oklch: oklch(49.65% 0.2351 298.27);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(120 40 210 / 50%); }
/* Tailwind CSS */
<div class="bg-[#7828d2] text-[#7828d2] border-[#7828d2]">