#784FB7#784FB7

#784FB7 is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.3% C 0.159 H 299.0°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#784FB7
RGBrgb(120, 79, 183)
HSLhsl(264, 42%, 51%)
HSVhsv(264, 57%, 72%)
CMYKcmyk(34.4%, 56.8%, 0%, 28.2%)
CIE-LABlab(42.77, 39.48, -49.07)
CIE-LCHlch(42.77, 62.98, 308.82°)
OKLaboklab(52.33% 0.077 -0.139)
OKLCHoklch(52.33% 0.159 299)
XYZxyz(19.0869, 13.0037, 46.2950)
Luminance0.1300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784FB7 #8EB74F
analogous
#4F5AB7 #784FB7 #AC4FB7
triadic
#784FB7 #B7784F #4FB778
tetradic
#784FB7 #B74F5A #8EB74F #4FB7AC
square
#784FB7 #B74F5A #8EB74F #4FB7AC
split-complementary
#784FB7 #B7AC4F #5AB74F
monochromatic
#402963 #5B3A8F #784FB7 #997AC9 #BBA6DB

Accessibility & contrast

On white

5.83
#784FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#784FB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784FB7
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784FB7#FFFFFF#000000##FFFFFF
##784FB71.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F65BA
Deuteranopia (green-blind)
#2F64B5
Tritanopia (blue-blind)
#6A647B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #784fb7;
/* rgb */ color: rgb(120, 79, 183);
/* oklch */ color: oklch(52.3% 0.159 299.0);
Tailwind
colors: {
  custom: {
    50: '#a382cd',
    500: '#784fb7',
    950: '#000000',
  },
}
SCSS
$custom: #784fb7;
$custom-light: #a382cd;
$custom-dark: #000000;
JSON
{
  "hex": "#784fb7",
  "rgb": {
    "r": 120,
    "g": 79,
    "b": 183
  },
  "hsl": {
    "h": 263.654,
    "s": 41.935,
    "l": 51.373
  },
  "oklch": {
    "l": 0.52326,
    "c": 0.1589,
    "h": 299
  },
  "luminance": 0.13004
}

Semantic roles & 50–950 ramp

primary
#784FB7
secondary
#B6C89A
accent
#D256A1
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #784FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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