#784BCB#784BCB

#784BCB is a mid, vivid violet. Relative luminance 0.133; OKLCH L 53.1% C 0.189 H 295.4°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#784BCB
RGBrgb(120, 75, 203)
HSLhsl(261, 55%, 55%)
HSVhsv(261, 63%, 80%)
CMYKcmyk(40.9%, 63.1%, 0%, 20.4%)
CIE-LABlab(43.27, 47.00, -59.90)
CIE-LCHlch(43.27, 76.14, 308.12°)
OKLaboklab(53.11% 0.0811 -0.1708)
OKLCHoklch(53.11% 0.189 295.4)
XYZxyz(21.0385, 13.3366, 57.9541)
Luminance0.1334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784BCB #9ECB4B
analogous
#4B5ECB #784BCB #B84BCB
triadic
#784BCB #CB784B #4BCB78
tetradic
#784BCB #CB4B5E #9ECB4B #4BCBB8
square
#784BCB #CB4B5E #9ECB4B #4BCBB8
split-complementary
#784BCB #CBB84B #5ECB4B
monochromatic
#412379 #5B31A8 #784BCB #9C7AD9 #BFAAE6

Accessibility & contrast

On white

5.73
#784BCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#784BCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784BCB
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784BCB#FFFFFF#000000##FFFFFF
##784BCB1.005.733.675.73
#FFFFFF5.731.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CF
Deuteranopia (green-blind)
#0064C8
Tritanopia (blue-blind)
#636884
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #784bcb;
/* rgb */ color: rgb(120, 75, 203);
/* oklch */ color: oklch(53.1% 0.189 295.4);
Tailwind
colors: {
  custom: {
    50: '#a580dc',
    500: '#784bcb',
    950: '#000000',
  },
}
SCSS
$custom: #784bcb;
$custom-light: #a580dc;
$custom-dark: #000000;
JSON
{
  "hex": "#784bcb",
  "rgb": {
    "r": 120,
    "g": 75,
    "b": 203
  },
  "hsl": {
    "h": 261.094,
    "s": 55.172,
    "l": 54.51
  },
  "oklch": {
    "l": 0.53114,
    "c": 0.18909,
    "h": 295.4
  },
  "luminance": 0.13337
}

Semantic roles & 50–950 ramp

primary
#784BCB
secondary
#C1D49E
accent
#DF49AA
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #784BCB

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

Preview Lab → · Contrast checker → · Palette generator →

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