#782DFD

A color in the Violet family

#782dfd is a color in the Violet family: RGB(120, 45, 253), HSL(262°, 98%, 58%), CMYK(53%, 82%, 0%, 1%). Closest named color: blueviolet. Contrast is 5.85:1 on white and 3.59:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#782dfd
RGBrgb(120 45 253)
RGB (legacy)rgb(120, 45, 253)
RGB %rgb(47% 18% 99%)
HSLhsl(262 98% 58%)
HSV / HSBhsv(262, 82%, 99%)
HWBhwb(262 18% 1%)
CMYKcmyk(53%, 82%, 0%, 1%)
CIELAB (D50)lab(41.24 64.5 -91.24)
LCHlch(41.24 111.73 305.26)
OKLaboklab(0.5399 0.0938 -0.2567)
OKLCHoklch(0.5399 0.2733 290.08)
Decimal7876093

Properties

Color ToneViolet
Closest named colorblueviolet ΔE 5.7
Closest web-safe color#6633ff
Hue262°
Saturation (HSL / HSV)98% / 82%
Lightness (HSL)58%
Brightness or Value (HSV)99%
Luminance (Rec.601 / Rec.709)36% / 30%
Relative luminance (WCAG)0.1296
Red / Green / Blue120 / 45 / 253

WCAG 2.2 Contrast Ratio

On White (#ffffff)
5.85:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
3.59: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 77.8 / -24 · As background with white / black text: Lc -83.1 / 26.3

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: #782dfd;
  --color-brand-oklch: oklch(53.99% 0.2733 290.08);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(120 45 253 / 50%); }
/* Tailwind CSS */
<div class="bg-[#782dfd] text-[#782dfd] border-[#782dfd]">