#784CAB#784CAB

#784CAB is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.1% C 0.149 H 302.9°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#784CAB
RGBrgb(120, 76, 171)
HSLhsl(268, 38%, 48%)
HSVhsv(268, 56%, 67%)
CMYKcmyk(29.8%, 55.6%, 0%, 32.9%)
CIE-LABlab(41.38, 38.10, -44.22)
CIE-LCHlch(41.38, 58.37, 310.74°)
OKLaboklab(51.07% 0.0806 -0.1248)
OKLCHoklch(51.07% 0.149 302.9)
XYZxyz(17.6792, 12.1022, 39.9248)
Luminance0.1210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784CAB #7FAB4C
analogous
#4C4FAB #784CAB #A74CAB
triadic
#784CAB #AB784C #4CAB78
tetradic
#784CAB #AB4C4F #7FAB4C #4CABA7
square
#784CAB #AB4C4F #7FAB4C #4CABA7
split-complementary
#784CAB #ABA74C #4FAB4C
monochromatic
#3D2656 #5A3981 #784CAB #9773C1 #B79ED4

Accessibility & contrast

On white

6.14
#784CAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#784CAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784CAB
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784CAB#FFFFFF#000000##FFFFFF
##784CAB1.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2861AE
Deuteranopia (green-blind)
#3761A9
Tritanopia (blue-blind)
#6F5E74
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #784cab;
/* rgb */ color: rgb(120, 76, 171);
/* oklch */ color: oklch(51.1% 0.149 302.9);
Tailwind
colors: {
  custom: {
    50: '#a280c4',
    500: '#784cab',
    950: '#000000',
  },
}
SCSS
$custom: #784cab;
$custom-light: #a280c4;
$custom-dark: #000000;
JSON
{
  "hex": "#784cab",
  "rgb": {
    "r": 120,
    "g": 76,
    "b": 171
  },
  "hsl": {
    "h": 267.789,
    "s": 38.462,
    "l": 48.431
  },
  "oklch": {
    "l": 0.51065,
    "c": 0.14855,
    "h": 302.9
  },
  "luminance": 0.12102
}

Semantic roles & 50–950 ramp

primary
#784CAB
secondary
#ABC092
accent
#CE5998
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #784CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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