#784BA8#784BA8

#784BA8 is a mid, vivid violet. Relative luminance 0.119; OKLCH L 50.7% C 0.146 H 304.0°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#784BA8
RGBrgb(120, 75, 168)
HSLhsl(269, 38%, 48%)
HSVhsv(269, 55%, 66%)
CMYKcmyk(28.6%, 55.4%, 0%, 34.1%)
CIE-LABlab(40.98, 37.91, -43.08)
CIE-LCHlch(40.98, 57.38, 311.35°)
OKLaboklab(50.71% 0.0819 -0.1214)
OKLCHoklch(50.71% 0.146 304)
XYZxyz(17.3281, 11.8524, 38.4131)
Luminance0.1185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784BA8 #7BA84B
analogous
#4B4CA8 #784BA8 #A64BA8
triadic
#784BA8 #A8784B #4BA878
tetradic
#784BA8 #A84B4C #7BA84B #4BA8A6
square
#784BA8 #A84B4C #7BA84B #4BA8A6
split-complementary
#784BA8 #A8A64B #4CA84B
monochromatic
#3C2553 #5A387E #784BA8 #9771BF #B69BD2

Accessibility & contrast

On white

6.23
#784BA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#784BA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784BA8
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784BA8#FFFFFF#000000##FFFFFF
##784BA81.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295FAB
Deuteranopia (green-blind)
#3961A6
Tritanopia (blue-blind)
#6F5D72
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #784ba8;
/* rgb */ color: rgb(120, 75, 168);
/* oklch */ color: oklch(50.7% 0.146 304.0);
Tailwind
colors: {
  custom: {
    50: '#a27fc2',
    500: '#784ba8',
    950: '#000000',
  },
}
SCSS
$custom: #784ba8;
$custom-light: #a27fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#784ba8",
  "rgb": {
    "r": 120,
    "g": 75,
    "b": 168
  },
  "hsl": {
    "h": 269.032,
    "s": 38.272,
    "l": 47.647
  },
  "oklch": {
    "l": 0.50714,
    "c": 0.14642,
    "h": 304
  },
  "luminance": 0.11852
}

Semantic roles & 50–950 ramp

primary
#784BA8
secondary
#A8BF90
accent
#CE5A96
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #784BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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