#782ABB#782ABB

#782ABB is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.9% C 0.211 H 303.5°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#782ABB
RGBrgb(120, 42, 187)
HSLhsl(272, 63%, 45%)
HSVhsv(272, 78%, 73%)
CMYKcmyk(35.8%, 77.5%, 0%, 26.7%)
CIE-LABlab(36.44, 58.65, -61.66)
CIE-LCHlch(36.44, 85.10, 313.57°)
OKLaboklab(47.87% 0.1165 -0.1758)
OKLCHoklch(47.87% 0.211 303.5)
XYZxyz(17.5412, 9.2369, 47.8628)
Luminance0.0924 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782ABB #6DBB2A
analogous
#302ABB #782ABB #BB2AB6
triadic
#782ABB #BB782A #2ABB78
tetradic
#782ABB #BB302A #6DBB2A #2AB6BB
square
#782ABB #BB302A #6DBB2A #2AB6BB
split-complementary
#782ABB #B6BB2A #2ABB30
monochromatic
#381457 #581F89 #782ABB #964CD7 #B47DE2

Accessibility & contrast

On white

7.38
#782ABB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#782ABB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782ABB
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782ABB#FFFFFF#000000##FFFFFF
##782ABB1.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BF
Deuteranopia (green-blind)
#0055B8
Tritanopia (blue-blind)
#6A5072
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #782abb;
/* rgb */ color: rgb(120, 42, 187);
/* oklch */ color: oklch(47.9% 0.211 303.5);
Tailwind
colors: {
  custom: {
    50: '#a56dd0',
    500: '#782abb',
    950: '#000000',
  },
}
SCSS
$custom: #782abb;
$custom-light: #a56dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#782abb",
  "rgb": {
    "r": 120,
    "g": 42,
    "b": 187
  },
  "hsl": {
    "h": 272.276,
    "s": 63.319,
    "l": 44.902
  },
  "oklch": {
    "l": 0.47865,
    "c": 0.21092,
    "h": 303.5
  },
  "luminance": 0.09237
}

Semantic roles & 50–950 ramp

primary
#782ABB
secondary
#9DCA76
accent
#E6418E
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #782ABB

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

Preview Lab → · Contrast checker → · Palette generator →

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