#784FB5#784FB5

#784FB5 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.2% C 0.156 H 299.5°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#784FB5
RGBrgb(120, 79, 181)
HSLhsl(264, 41%, 51%)
HSVhsv(264, 56%, 71%)
CMYKcmyk(33.7%, 56.4%, 0%, 29%)
CIE-LABlab(42.64, 38.96, -48.09)
CIE-LCHlch(42.64, 61.89, 309.01°)
OKLaboklab(52.19% 0.077 -0.1361)
OKLCHoklch(52.19% 0.156 299.5)
XYZxyz(18.8802, 12.9211, 45.2064)
Luminance0.1292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784FB5 #8CB54F
analogous
#4F59B5 #784FB5 #AB4FB5
triadic
#784FB5 #B5784F #4FB578
tetradic
#784FB5 #B54F59 #8CB54F #4FB5AB
square
#784FB5 #B54F59 #8CB54F #4FB5AB
split-complementary
#784FB5 #B5AB4F #59B54F
monochromatic
#3F2961 #5B3B8C #784FB5 #997AC7 #BAA5D9

Accessibility & contrast

On white

5.86
#784FB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#784FB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784FB5
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784FB5#FFFFFF#000000##FFFFFF
##784FB51.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2265B8
Deuteranopia (green-blind)
#3164B3
Tritanopia (blue-blind)
#6B647A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #784fb5;
/* rgb */ color: rgb(120, 79, 181);
/* oklch */ color: oklch(52.2% 0.156 299.5);
Tailwind
colors: {
  custom: {
    50: '#a282cc',
    500: '#784fb5',
    950: '#000000',
  },
}
SCSS
$custom: #784fb5;
$custom-light: #a282cc;
$custom-dark: #000000;
JSON
{
  "hex": "#784fb5",
  "rgb": {
    "r": 120,
    "g": 79,
    "b": 181
  },
  "hsl": {
    "h": 264.118,
    "s": 40.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.52194,
    "c": 0.1564,
    "h": 299.5
  },
  "luminance": 0.12921
}

Semantic roles & 50–950 ramp

primary
#784FB5
secondary
#B4C699
accent
#D157A0
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #784FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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