#782BA9#782BA9

#782BA9 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.5% C 0.192 H 308.5°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#782BA9
RGBrgb(120, 43, 169)
HSLhsl(277, 59%, 42%)
HSVhsv(277, 75%, 66%)
CMYKcmyk(29%, 74.6%, 0%, 33.7%)
CIE-LABlab(35.17, 54.17, -53.02)
CIE-LCHlch(35.17, 75.80, 315.62°)
OKLaboklab(46.54% 0.1195 -0.1504)
OKLCHoklch(46.54% 0.192 308.5)
XYZxyz(15.7696, 8.5857, 38.3549)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782BA9 #5CA92B
analogous
#392BA9 #782BA9 #A92B9B
triadic
#782BA9 #A9782B #2BA978
tetradic
#782BA9 #A9392B #5CA92B #2B9BA9
square
#782BA9 #A9392B #5CA92B #2B9BA9
split-complementary
#782BA9 #9BA92B #2BA939
monochromatic
#331247 #551F78 #782BA9 #9842CF #B373DB

Accessibility & contrast

On white

7.73
#782BA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#782BA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782BA9
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782BA9#FFFFFF#000000##FFFFFF
##782BA91.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AD
Deuteranopia (green-blind)
#0054A6
Tritanopia (blue-blind)
#704968
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #782ba9;
/* rgb */ color: rgb(120, 43, 169);
/* oklch */ color: oklch(46.5% 0.192 308.5);
Tailwind
colors: {
  custom: {
    50: '#a46cc3',
    500: '#782ba9',
    950: '#000000',
  },
}
SCSS
$custom: #782ba9;
$custom-light: #a46cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#782ba9",
  "rgb": {
    "r": 120,
    "g": 43,
    "b": 169
  },
  "hsl": {
    "h": 276.667,
    "s": 59.434,
    "l": 41.569
  },
  "oklch": {
    "l": 0.46539,
    "c": 0.19213,
    "h": 308.5
  },
  "luminance": 0.08585
}

Semantic roles & 50–950 ramp

primary
#782BA9
secondary
#8EC36D
accent
#E34582
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #782BA9

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

Preview Lab → · Contrast checker → · Palette generator →

#782BA9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva