#784FB8#784FB8

#784FB8 is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.4% C 0.160 H 298.8°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#784FB8
RGBrgb(120, 79, 184)
HSLhsl(263, 43%, 52%)
HSVhsv(263, 57%, 72%)
CMYKcmyk(34.8%, 57.1%, 0%, 27.8%)
CIE-LABlab(42.83, 39.75, -49.55)
CIE-LCHlch(42.83, 63.52, 308.73°)
OKLaboklab(52.39% 0.0771 -0.1404)
OKLCHoklch(52.39% 0.16 298.8)
XYZxyz(19.1913, 13.0455, 46.8451)
Luminance0.1305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784FB8 #8FB84F
analogous
#4F5BB8 #784FB8 #AD4FB8
triadic
#784FB8 #B8784F #4FB878
tetradic
#784FB8 #B84F5B #8FB84F #4FB8AD
square
#784FB8 #B84F5B #8FB84F #4FB8AD
split-complementary
#784FB8 #B8AD4F #5BB84F
monochromatic
#402864 #5C3A90 #784FB8 #997BCA #BBA6DB

Accessibility & contrast

On white

5.82
#784FB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#784FB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784FB8
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784FB8#FFFFFF#000000##FFFFFF
##784FB81.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E65BB
Deuteranopia (green-blind)
#2E64B6
Tritanopia (blue-blind)
#6A657C
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #784fb8;
/* rgb */ color: rgb(120, 79, 184);
/* oklch */ color: oklch(52.4% 0.160 298.8);
Tailwind
colors: {
  custom: {
    50: '#a382ce',
    500: '#784fb8',
    950: '#000000',
  },
}
SCSS
$custom: #784fb8;
$custom-light: #a382ce;
$custom-dark: #000000;
JSON
{
  "hex": "#784fb8",
  "rgb": {
    "r": 120,
    "g": 79,
    "b": 184
  },
  "hsl": {
    "h": 263.429,
    "s": 42.51,
    "l": 51.569
  },
  "oklch": {
    "l": 0.52392,
    "c": 0.16015,
    "h": 298.8
  },
  "luminance": 0.13046
}

Semantic roles & 50–950 ramp

primary
#784FB8
secondary
#B6C89A
accent
#D256A2
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#0F0A14
muted
#7F7C82

Preview Lab

Preview with #784FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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