#782ECF#782ECF

#782ECF is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.9% C 0.227 H 298.4°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#782ECF
RGBrgb(120, 46, 207)
HSLhsl(268, 64%, 50%)
HSVhsv(268, 78%, 81%)
CMYKcmyk(42%, 77.8%, 0%, 18.8%)
CIE-LABlab(38.64, 61.78, -69.74)
CIE-LCHlch(38.64, 93.18, 311.54°)
OKLaboklab(49.92% 0.1079 -0.1996)
OKLCHoklch(49.92% 0.227 298.4)
XYZxyz(19.9823, 10.4517, 59.9840)
Luminance0.1045 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782ECF #85CF2E
analogous
#2E34CF #782ECF #C92ECF
triadic
#782ECF #CF782E #2ECF78
tetradic
#782ECF #CF2E34 #85CF2E #2ECFC9
square
#782ECF #CF2E34 #85CF2E #2ECFC9
split-complementary
#782ECF #CFC92E #34CF2E
monochromatic
#3E186B #5B239D #782ECF #985FDB #B891E7

Accessibility & contrast

On white

6.80
#782ECF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#782ECF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #782ECF
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782ECF#FFFFFF#000000##FFFFFF
##782ECF1.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD3
Deuteranopia (green-blind)
#0059CC
Tritanopia (blue-blind)
#625A7E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #782ecf;
/* rgb */ color: rgb(120, 46, 207);
/* oklch */ color: oklch(49.9% 0.227 298.4);
Tailwind
colors: {
  custom: {
    50: '#a76fdf',
    500: '#782ecf',
    950: '#000000',
  },
}
SCSS
$custom: #782ecf;
$custom-light: #a76fdf;
$custom-dark: #000000;
JSON
{
  "hex": "#782ecf",
  "rgb": {
    "r": 120,
    "g": 46,
    "b": 207
  },
  "hsl": {
    "h": 267.578,
    "s": 63.636,
    "l": 49.608
  },
  "oklch": {
    "l": 0.49919,
    "c": 0.22692,
    "h": 298.4
  },
  "luminance": 0.10452
}

Semantic roles & 50–950 ramp

primary
#782ECF
secondary
#AFD188
accent
#E7419B
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100815
muted
#7F7B83

Preview Lab

Preview with #782ECF

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#782ECF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva