#784FAC#784FAC

#784FAC is a mid, vivid violet. Relative luminance 0.126; OKLCH L 51.6% C 0.145 H 301.9°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#784FAC
RGBrgb(120, 79, 172)
HSLhsl(266, 37%, 49%)
HSVhsv(266, 54%, 67%)
CMYKcmyk(30.2%, 54.1%, 0%, 32.5%)
CIE-LABlab(42.10, 36.64, -43.66)
CIE-LCHlch(42.10, 57.00, 310.00°)
OKLaboklab(51.62% 0.0767 -0.1231)
OKLCHoklch(51.62% 0.145 301.9)
XYZxyz(17.9864, 12.5636, 40.4992)
Luminance0.1256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784FAC #83AC4F
analogous
#4F54AC #784FAC #A74FAC
triadic
#784FAC #AC784F #4FAC78
tetradic
#784FAC #AC4F54 #83AC4F #4FACA7
square
#784FAC #AC4F54 #83AC4F #4FACA7
split-complementary
#784FAC #ACA74F #54AC4F
monochromatic
#3D2858 #5B3C82 #784FAC #9877C1 #B8A1D4

Accessibility & contrast

On white

5.98
#784FAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#784FAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784FAC
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784FAC#FFFFFF#000000##FFFFFF
##784FAC1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D63AF
Deuteranopia (green-blind)
#3A63AA
Tritanopia (blue-blind)
#6E6176
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #784fac;
/* rgb */ color: rgb(120, 79, 172);
/* oklch */ color: oklch(51.6% 0.145 301.9);
Tailwind
colors: {
  custom: {
    50: '#a282c5',
    500: '#784fac',
    950: '#000000',
  },
}
SCSS
$custom: #784fac;
$custom-light: #a282c5;
$custom-dark: #000000;
JSON
{
  "hex": "#784fac",
  "rgb": {
    "r": 120,
    "g": 79,
    "b": 172
  },
  "hsl": {
    "h": 266.452,
    "s": 37.052,
    "l": 49.216
  },
  "oklch": {
    "l": 0.51615,
    "c": 0.14505,
    "h": 301.9
  },
  "luminance": 0.12564
}

Semantic roles & 50–950 ramp

primary
#784FAC
secondary
#AEC196
accent
#CD5B9B
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #784FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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