#784BA7#784BA7

#784BA7 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 50.7% C 0.145 H 304.3°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#784BA7
RGBrgb(120, 75, 167)
HSLhsl(269, 38%, 47%)
HSVhsv(269, 55%, 65%)
CMYKcmyk(28.1%, 55.1%, 0%, 34.5%)
CIE-LABlab(40.92, 37.66, -42.58)
CIE-LCHlch(40.92, 56.84, 311.49°)
OKLaboklab(50.65% 0.0818 -0.1199)
OKLCHoklch(50.65% 0.145 304.3)
XYZxyz(17.2353, 11.8153, 37.9243)
Luminance0.1182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784BA7 #7AA74B
analogous
#4B4CA7 #784BA7 #A64BA7
triadic
#784BA7 #A7784B #4BA778
tetradic
#784BA7 #A74B4C #7AA74B #4BA7A6
square
#784BA7 #A74B4C #7AA74B #4BA7A6
split-complementary
#784BA7 #A7A64B #4CA74B
monochromatic
#3B2553 #5A387D #784BA7 #9770BF #B69BD2

Accessibility & contrast

On white

6.24
#784BA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#784BA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784BA7
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784BA7#FFFFFF#000000##FFFFFF
##784BA71.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5FAA
Deuteranopia (green-blind)
#3960A5
Tritanopia (blue-blind)
#705C72
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #784ba7;
/* rgb */ color: rgb(120, 75, 167);
/* oklch */ color: oklch(50.7% 0.145 304.3);
Tailwind
colors: {
  custom: {
    50: '#a27fc2',
    500: '#784ba7',
    950: '#000000',
  },
}
SCSS
$custom: #784ba7;
$custom-light: #a27fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#784ba7",
  "rgb": {
    "r": 120,
    "g": 75,
    "b": 167
  },
  "hsl": {
    "h": 269.348,
    "s": 38.017,
    "l": 47.451
  },
  "oklch": {
    "l": 0.50651,
    "c": 0.14519,
    "h": 304.3
  },
  "luminance": 0.11815
}

Semantic roles & 50–950 ramp

primary
#784BA7
secondary
#A7BE8F
accent
#CE5A95
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #784BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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