#784FA2

A color in the Violet family

#784fa2 is a color in the Violet family: RGB(120, 79, 162), HSL(270°, 34%, 47%), CMYK(26%, 51%, 0%, 36%). Closest named color: slateblue. Contrast is 6.11:1 on white and 3.44:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#784fa2
RGBrgb(120 79 162)
RGB (legacy)rgb(120, 79, 162)
RGB %rgb(47% 31% 64%)
HSLhsl(270 34% 47%)
HSV / HSBhsv(270, 51%, 64%)
HWBhwb(270 31% 36%)
CMYKcmyk(26%, 51%, 0%, 36%)
CIELAB (D50)lab(41.18 30.41 -38.94)
LCHlch(41.18 49.41 307.99)
OKLaboklab(0.51 0.0759 -0.1085)
OKLCHoklch(0.51 0.1324 304.98)
Decimal7884706

Properties

Color ToneViolet
Closest named colorslateblue ΔE 7.2
Closest web-safe color#666699
Hue270°
Saturation (HSL / HSV)34% / 51%
Lightness (HSL)47%
Brightness or Value (HSV)64%
Luminance (Rec.601 / Rec.709)39% / 37%
Relative luminance (WCAG)0.1219
Red / Green / Blue120 / 79 / 162

WCAG 2.2 Contrast Ratio

On White (#ffffff)
6.11:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
3.44: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 80.3 / -21.6 · As background with white / black text: Lc -85.4 / 23.8

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: #784fa2;
  --color-brand-oklch: oklch(51% 0.1324 304.98);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(120 79 162 / 50%); }
/* Tailwind CSS */
<div class="bg-[#784fa2] text-[#784fa2] border-[#784fa2]">