#782CBB#782CBB

#782CBB is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.1% C 0.209 H 303.3°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#782CBB
RGBrgb(120, 44, 187)
HSLhsl(272, 62%, 45%)
HSVhsv(272, 76%, 73%)
CMYKcmyk(35.8%, 76.5%, 0%, 26.7%)
CIE-LABlab(36.71, 57.87, -61.22)
CIE-LCHlch(36.71, 84.24, 313.39°)
OKLaboklab(48.06% 0.1148 -0.1745)
OKLCHoklch(48.06% 0.209 303.3)
XYZxyz(17.6139, 9.3823, 47.8871)
Luminance0.0938 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782CBB #6FBB2C
analogous
#302CBB #782CBB #BB2CB7
triadic
#782CBB #BB782C #2CBB78
tetradic
#782CBB #BB302C #6FBB2C #2CB7BB
square
#782CBB #BB302C #6FBB2C #2CB7BB
split-complementary
#782CBB #B7BB2C #2CBB30
monochromatic
#381558 #582089 #782CBB #964FD6 #B480E1

Accessibility & contrast

On white

7.30
#782CBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #782CBB
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782CBB#FFFFFF#000000##FFFFFF
##782CBB1.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #782cbb;
/* rgb */ color: rgb(120, 44, 187);
/* oklch */ color: oklch(48.1% 0.209 303.3);
Tailwind
colors: {
  custom: {
    50: '#a56dd0',
    500: '#782cbb',
    950: '#000000',
  },
}
SCSS
$custom: #782cbb;
$custom-light: #a56dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#782cbb",
  "rgb": {
    "r": 120,
    "g": 44,
    "b": 187
  },
  "hsl": {
    "h": 271.888,
    "s": 61.905,
    "l": 45.294
  },
  "oklch": {
    "l": 0.48057,
    "c": 0.2089,
    "h": 303.3
  },
  "luminance": 0.09382
}

Semantic roles & 50–950 ramp

primary
#782CBB
secondary
#9FCA79
accent
#E5438F
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #782CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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