#784BBA#784BBA

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

Color values

HEX#784BBA
RGBrgb(120, 75, 186)
HSLhsl(264, 45%, 51%)
HSVhsv(264, 60%, 73%)
CMYKcmyk(35.5%, 59.7%, 0%, 27.1%)
CIE-LABlab(42.11, 42.51, -51.88)
CIE-LCHlch(42.11, 67.08, 309.33°)
OKLaboklab(51.9% 0.082 -0.1472)
OKLCHoklch(51.9% 0.169 299.1)
XYZxyz(19.1226, 12.5702, 47.8637)
Luminance0.1257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784BBA #8DBA4B
analogous
#4B55BA #784BBA #AF4BBA
triadic
#784BBA #BA784B #4BBA78
tetradic
#784BBA #BA4B55 #8DBA4B #4BBAAF
square
#784BBA #BA4B55 #8DBA4B #4BBAAF
split-complementary
#784BBA #BAAF4B #55BA4B
monochromatic
#3F2664 #5B3790 #784BBA #9977CB #BAA3DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##784BBA#FFFFFF#000000##FFFFFF
##784BBA1.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)
#0763BE
Deuteranopia (green-blind)
#2462B8
Tritanopia (blue-blind)
#69627B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #784bba;
/* rgb */ color: rgb(120, 75, 186);
/* oklch */ color: oklch(51.9% 0.169 299.1);
Tailwind
colors: {
  custom: {
    50: '#a37fcf',
    500: '#784bba',
    950: '#000000',
  },
}
SCSS
$custom: #784bba;
$custom-light: #a37fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#784bba",
  "rgb": {
    "r": 120,
    "g": 75,
    "b": 186
  },
  "hsl": {
    "h": 264.324,
    "s": 44.578,
    "l": 51.176
  },
  "oklch": {
    "l": 0.51903,
    "c": 0.16855,
    "h": 299.1
  },
  "luminance": 0.1257
}

Semantic roles & 50–950 ramp

primary
#784BBA
secondary
#B5C998
accent
#D454A0
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#0F0A14
muted
#7F7C82

Preview Lab

Preview with #784BBA

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

Preview Lab → · Contrast checker → · Palette generator →

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