#784CEC#784CEC

#784CEC is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 55.8% C 0.227 H 289.6°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#784CEC
RGBrgb(120, 76, 236)
HSLhsl(257, 81%, 61%)
HSVhsv(257, 68%, 93%)
CMYKcmyk(49.2%, 67.8%, 0%, 7.5%)
CIE-LABlab(45.93, 55.40, -74.40)
CIE-LCHlch(45.93, 92.76, 306.67°)
OKLaboklab(55.81% 0.076 -0.2134)
OKLCHoklch(55.81% 0.227 289.6)
XYZxyz(25.4661, 15.2170, 80.9360)
Luminance0.1522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784CEC #C0EC4C
analogous
#4C70EC #784CEC #C84CEC
triadic
#784CEC #EC784C #4CEC78
tetradic
#784CEC #EC4C70 #C0EC4C #4CECC8
square
#784CEC #EC4C70 #C0EC4C #4CECC8
split-complementary
#784CEC #ECC84C #70EC4C
monochromatic
#3C12AB #5018E3 #784CEC #A283F2 #CBBBF8

Accessibility & contrast

On white

5.19
#784CEC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#784CEC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784CEC
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784CEC#FFFFFF#000000##FFFFFF
##784CEC1.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070F1
Deuteranopia (green-blind)
#0069E9
Tritanopia (blue-blind)
#507596
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #784cec;
/* rgb */ color: rgb(120, 76, 236);
/* oklch */ color: oklch(55.8% 0.227 289.6);
Tailwind
colors: {
  custom: {
    50: '#a881f3',
    500: '#784cec',
    950: '#000000',
  },
}
SCSS
$custom: #784cec;
$custom-light: #a881f3;
$custom-dark: #000000;
JSON
{
  "hex": "#784cec",
  "rgb": {
    "r": 120,
    "g": 76,
    "b": 236
  },
  "hsl": {
    "h": 256.5,
    "s": 80.808,
    "l": 61.176
  },
  "oklch": {
    "l": 0.55806,
    "c": 0.22656,
    "h": 289.6
  },
  "luminance": 0.15218
}

Semantic roles & 50–950 ramp

primary
#784CEC
secondary
#D7E8AC
accent
#DD08A3
background
#FBF8FF
surface
#F6EFFE
border
#D0CAD6
text
#110B17
muted
#807C85

Preview Lab

Preview with #784CEC

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

Preview Lab → · Contrast checker → · Palette generator →

#784CEC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva