#784FB4#784FB4

#784FB4 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.1% C 0.155 H 299.8°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#784FB4
RGBrgb(120, 79, 180)
HSLhsl(264, 40%, 51%)
HSVhsv(264, 56%, 71%)
CMYKcmyk(33.3%, 56.1%, 0%, 29.4%)
CIE-LABlab(42.58, 38.70, -47.60)
CIE-LCHlch(42.58, 61.35, 309.11°)
OKLaboklab(52.13% 0.077 -0.1347)
OKLCHoklch(52.13% 0.155 299.8)
XYZxyz(18.7779, 12.8802, 44.6680)
Luminance0.1288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784FB4 #8BB44F
analogous
#4F58B4 #784FB4 #AA4FB4
triadic
#784FB4 #B4784F #4FB478
tetradic
#784FB4 #B44F58 #8BB44F #4FB4AA
square
#784FB4 #B44F58 #8BB44F #4FB4AA
split-complementary
#784FB4 #B4AA4F #58B44F
monochromatic
#3F2960 #5B3B8B #784FB4 #997AC6 #BAA5D9

Accessibility & contrast

On white

5.87
#784FB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#784FB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784FB4
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784FB4#FFFFFF#000000##FFFFFF
##784FB41.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2464B7
Deuteranopia (green-blind)
#3264B2
Tritanopia (blue-blind)
#6B637A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #784fb4;
/* rgb */ color: rgb(120, 79, 180);
/* oklch */ color: oklch(52.1% 0.155 299.8);
Tailwind
colors: {
  custom: {
    50: '#a282cb',
    500: '#784fb4',
    950: '#000000',
  },
}
SCSS
$custom: #784fb4;
$custom-light: #a282cb;
$custom-dark: #000000;
JSON
{
  "hex": "#784fb4",
  "rgb": {
    "r": 120,
    "g": 79,
    "b": 180
  },
  "hsl": {
    "h": 264.356,
    "s": 40.239,
    "l": 50.784
  },
  "oklch": {
    "l": 0.52129,
    "c": 0.15513,
    "h": 299.8
  },
  "luminance": 0.1288
}

Semantic roles & 50–950 ramp

primary
#784FB4
secondary
#B4C699
accent
#D0589F
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #784FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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