#784BB7#784BB7

#784BB7 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 51.7% C 0.165 H 299.9°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#784BB7
RGBrgb(120, 75, 183)
HSLhsl(265, 43%, 51%)
HSVhsv(265, 59%, 72%)
CMYKcmyk(34.4%, 59%, 0%, 28.2%)
CIE-LABlab(41.91, 41.73, -50.44)
CIE-LCHlch(41.91, 65.47, 309.60°)
OKLaboklab(51.7% 0.0821 -0.143)
OKLCHoklch(51.7% 0.165 299.9)
XYZxyz(18.8070, 12.4440, 46.2017)
Luminance0.1244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784BB7 #8AB74B
analogous
#4B54B7 #784BB7 #AE4BB7
triadic
#784BB7 #B7784B #4BB778
tetradic
#784BB7 #B74B54 #8AB74B #4BB7AE
square
#784BB7 #B74B54 #8AB74B #4BB7AE
split-complementary
#784BB7 #B7AE4B #54B74B
monochromatic
#3F2761 #5B388D #784BB7 #9977C8 #BAA2DA

Accessibility & contrast

On white

6.02
#784BB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#784BB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784BB7
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784BB7#FFFFFF#000000##FFFFFF
##784BB71.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1163BB
Deuteranopia (green-blind)
#2862B5
Tritanopia (blue-blind)
#6B617A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #784bb7;
/* rgb */ color: rgb(120, 75, 183);
/* oklch */ color: oklch(51.7% 0.165 299.9);
Tailwind
colors: {
  custom: {
    50: '#a37fcd',
    500: '#784bb7',
    950: '#000000',
  },
}
SCSS
$custom: #784bb7;
$custom-light: #a37fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#784bb7",
  "rgb": {
    "r": 120,
    "g": 75,
    "b": 183
  },
  "hsl": {
    "h": 265,
    "s": 42.857,
    "l": 50.588
  },
  "oklch": {
    "l": 0.51698,
    "c": 0.16488,
    "h": 299.9
  },
  "luminance": 0.12444
}

Semantic roles & 50–950 ramp

primary
#784BB7
secondary
#B3C797
accent
#D3559E
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #784BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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