#784BB5#784BB5

#784BB5 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 51.6% C 0.162 H 300.4°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#784BB5
RGBrgb(120, 75, 181)
HSLhsl(265, 42%, 50%)
HSVhsv(265, 59%, 71%)
CMYKcmyk(33.7%, 58.6%, 0%, 29%)
CIE-LABlab(41.78, 41.22, -49.47)
CIE-LCHlch(41.78, 64.39, 309.80°)
OKLaboklab(51.56% 0.0821 -0.1402)
OKLCHoklch(51.56% 0.162 300.4)
XYZxyz(18.6003, 12.3613, 45.1131)
Luminance0.1236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784BB5 #88B54B
analogous
#4B53B5 #784BB5 #AD4BB5
triadic
#784BB5 #B5784B #4BB578
tetradic
#784BB5 #B54B53 #88B54B #4BB5AD
square
#784BB5 #B54B53 #88B54B #4BB5AD
split-complementary
#784BB5 #B5AD4B #53B54B
monochromatic
#3F275F #5B398A #784BB5 #9976C7 #B9A2D9

Accessibility & contrast

On white

6.05
#784BB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#784BB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784BB5
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784BB5#FFFFFF#000000##FFFFFF
##784BB51.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1662B8
Deuteranopia (green-blind)
#2B62B3
Tritanopia (blue-blind)
#6B6179
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #784bb5;
/* rgb */ color: rgb(120, 75, 181);
/* oklch */ color: oklch(51.6% 0.162 300.4);
Tailwind
colors: {
  custom: {
    50: '#a37fcc',
    500: '#784bb5',
    950: '#000000',
  },
}
SCSS
$custom: #784bb5;
$custom-light: #a37fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#784bb5",
  "rgb": {
    "r": 120,
    "g": 75,
    "b": 181
  },
  "hsl": {
    "h": 265.472,
    "s": 41.732,
    "l": 50.196
  },
  "oklch": {
    "l": 0.51563,
    "c": 0.16244,
    "h": 300.4
  },
  "luminance": 0.12361
}

Semantic roles & 50–950 ramp

primary
#784BB5
secondary
#B1C696
accent
#D2569D
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #784BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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