#782ABF#782ABF

#782ABF is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.2% C 0.215 H 302.5°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#782ABF
RGBrgb(120, 42, 191)
HSLhsl(271, 64%, 46%)
HSVhsv(271, 78%, 75%)
CMYKcmyk(37.2%, 78%, 0%, 25.1%)
CIE-LABlab(36.76, 59.57, -63.48)
CIE-LCHlch(36.76, 87.06, 313.18°)
OKLaboklab(48.2% 0.1155 -0.1812)
OKLCHoklch(48.2% 0.215 302.5)
XYZxyz(17.9754, 9.4105, 50.1495)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782ABF #71BF2A
analogous
#2D2ABF #782ABF #BF2ABB
triadic
#782ABF #BF782A #2ABF78
tetradic
#782ABF #BF2D2A #71BF2A #2ABBBF
square
#782ABF #BF2D2A #71BF2A #2ABBBF
split-complementary
#782ABF #BBBF2A #2ABF2D
monochromatic
#39145B #581F8D #782ABF #964ED8 #B480E3

Accessibility & contrast

On white

7.29
#782ABF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#782ABF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782ABF
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782ABF#FFFFFF#000000##FFFFFF
##782ABF1.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C3
Deuteranopia (green-blind)
#0056BC
Tritanopia (blue-blind)
#695274
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #782abf;
/* rgb */ color: rgb(120, 42, 191);
/* oklch */ color: oklch(48.2% 0.215 302.5);
Tailwind
colors: {
  custom: {
    50: '#a56dd3',
    500: '#782abf',
    950: '#000000',
  },
}
SCSS
$custom: #782abf;
$custom-light: #a56dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#782abf",
  "rgb": {
    "r": 120,
    "g": 42,
    "b": 191
  },
  "hsl": {
    "h": 271.409,
    "s": 63.948,
    "l": 45.686
  },
  "oklch": {
    "l": 0.48195,
    "c": 0.21485,
    "h": 302.5
  },
  "luminance": 0.09411
}

Semantic roles & 50–950 ramp

primary
#782ABF
secondary
#A0CC79
accent
#E74190
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100714
muted
#7F7A83

Preview Lab

Preview with #782ABF

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

Preview Lab → · Contrast checker → · Palette generator →

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