#784EBA#784EBA

#784EBA is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.4% C 0.164 H 298.5°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#784EBA
RGBrgb(120, 78, 186)
HSLhsl(263, 44%, 52%)
HSVhsv(263, 58%, 73%)
CMYKcmyk(35.5%, 58.1%, 0%, 27.1%)
CIE-LABlab(42.74, 40.84, -50.86)
CIE-LCHlch(42.74, 65.23, 308.76°)
OKLaboklab(52.37% 0.0783 -0.1442)
OKLCHoklch(52.37% 0.164 298.5)
XYZxyz(19.3309, 12.9868, 47.9331)
Luminance0.1299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784EBA #90BA4E
analogous
#4E5ABA #784EBA #AE4EBA
triadic
#784EBA #BA784E #4EBA78
tetradic
#784EBA #BA4E5A #90BA4E #4EBAAE
square
#784EBA #BA4E5A #90BA4E #4EBAAE
split-complementary
#784EBA #BAAE4E #5ABA4E
monochromatic
#402866 #5C3992 #784EBA #9A7ACB #BBA6DC

Accessibility & contrast

On white

5.84
#784EBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #784EBA
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784EBA#FFFFFF#000000##FFFFFF
##784EBA1.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1665BE
Deuteranopia (green-blind)
#2964B8
Tritanopia (blue-blind)
#69647C
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #784eba;
/* rgb */ color: rgb(120, 78, 186);
/* oklch */ color: oklch(52.4% 0.164 298.5);
Tailwind
colors: {
  custom: {
    50: '#a381cf',
    500: '#784eba',
    950: '#000000',
  },
}
SCSS
$custom: #784eba;
$custom-light: #a381cf;
$custom-dark: #000000;
JSON
{
  "hex": "#784eba",
  "rgb": {
    "r": 120,
    "g": 78,
    "b": 186
  },
  "hsl": {
    "h": 263.333,
    "s": 43.902,
    "l": 51.765
  },
  "oklch": {
    "l": 0.52368,
    "c": 0.16414,
    "h": 298.5
  },
  "luminance": 0.12987
}

Semantic roles & 50–950 ramp

primary
#784EBA
secondary
#B7CA9A
accent
#D454A2
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#0F0A14
muted
#7F7C82

Preview Lab

Preview with #784EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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