#784FA8#784FA8

#784FA8 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 51.4% C 0.140 H 303.1°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#784FA8
RGBrgb(120, 79, 168)
HSLhsl(268, 36%, 48%)
HSVhsv(268, 53%, 66%)
CMYKcmyk(28.6%, 53%, 0%, 34.1%)
CIE-LABlab(41.86, 35.62, -41.67)
CIE-LCHlch(41.86, 54.82, 310.52°)
OKLaboklab(51.37% 0.0764 -0.1173)
OKLCHoklch(51.37% 0.14 303.1)
XYZxyz(17.6080, 12.4122, 38.5064)
Luminance0.1241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784FA8 #7FA84F
analogous
#4F53A8 #784FA8 #A44FA8
triadic
#784FA8 #A8784F #4FA878
tetradic
#784FA8 #A84F53 #7FA84F #4FA8A4
square
#784FA8 #A84F53 #7FA84F #4FA8A4
split-complementary
#784FA8 #A8A44F #53A84F
monochromatic
#3D2855 #5A3B7E #784FA8 #9776BE #B79FD2

Accessibility & contrast

On white

6.03
#784FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#784FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784FA8
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784FA8#FFFFFF#000000##FFFFFF
##784FA81.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3162AB
Deuteranopia (green-blind)
#3D63A6
Tritanopia (blue-blind)
#6F6074
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #784fa8;
/* rgb */ color: rgb(120, 79, 168);
/* oklch */ color: oklch(51.4% 0.140 303.1);
Tailwind
colors: {
  custom: {
    50: '#a181c2',
    500: '#784fa8',
    950: '#000000',
  },
}
SCSS
$custom: #784fa8;
$custom-light: #a181c2;
$custom-dark: #000000;
JSON
{
  "hex": "#784fa8",
  "rgb": {
    "r": 120,
    "g": 79,
    "b": 168
  },
  "hsl": {
    "h": 267.64,
    "s": 36.032,
    "l": 48.431
  },
  "oklch": {
    "l": 0.51366,
    "c": 0.13998,
    "h": 303.1
  },
  "luminance": 0.12412
}

Semantic roles & 50–950 ramp

primary
#784FA8
secondary
#ABBF94
accent
#CC5C98
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #784FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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