#784BBB#784BBB

#784BBB is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.0% C 0.170 H 298.9°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#784BBB
RGBrgb(120, 75, 187)
HSLhsl(264, 45%, 51%)
HSVhsv(264, 60%, 73%)
CMYKcmyk(35.8%, 59.9%, 0%, 26.7%)
CIE-LABlab(42.17, 42.77, -52.36)
CIE-LCHlch(42.17, 67.61, 309.24°)
OKLaboklab(51.97% 0.082 -0.1486)
OKLCHoklch(51.97% 0.17 298.9)
XYZxyz(19.2292, 12.6129, 48.4255)
Luminance0.1261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784BBB #8EBB4B
analogous
#4B56BB #784BBB #B04BBB
triadic
#784BBB #BB784B #4BBB78
tetradic
#784BBB #BB4B56 #8EBB4B #4BBBB0
square
#784BBB #BB4B56 #8EBB4B #4BBBB0
split-complementary
#784BBB #BBB04B #56BB4B
monochromatic
#402665 #5B3792 #784BBB #9977CC #BBA4DD

Accessibility & contrast

On white

5.96
#784BBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#784BBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784BBB
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784BBB#FFFFFF#000000##FFFFFF
##784BBB1.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0364BF
Deuteranopia (green-blind)
#2263B9
Tritanopia (blue-blind)
#69637C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #784bbb;
/* rgb */ color: rgb(120, 75, 187);
/* oklch */ color: oklch(52.0% 0.170 298.9);
Tailwind
colors: {
  custom: {
    50: '#a37fd0',
    500: '#784bbb',
    950: '#000000',
  },
}
SCSS
$custom: #784bbb;
$custom-light: #a37fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#784bbb",
  "rgb": {
    "r": 120,
    "g": 75,
    "b": 187
  },
  "hsl": {
    "h": 264.107,
    "s": 45.161,
    "l": 51.373
  },
  "oklch": {
    "l": 0.51972,
    "c": 0.16977,
    "h": 298.9
  },
  "luminance": 0.12613
}

Semantic roles & 50–950 ramp

primary
#784BBB
secondary
#B6CA98
accent
#D553A1
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #784BBB

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

Preview Lab → · Contrast checker → · Palette generator →

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