#782BB1#782BB1

#782BB1 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.2% C 0.200 H 306.1°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#782BB1
RGBrgb(120, 43, 177)
HSLhsl(274, 61%, 43%)
HSVhsv(274, 76%, 69%)
CMYKcmyk(32.2%, 75.7%, 0%, 30.6%)
CIE-LABlab(35.78, 55.97, -56.81)
CIE-LCHlch(35.78, 79.75, 314.58°)
OKLaboklab(47.16% 0.1179 -0.1616)
OKLCHoklch(47.16% 0.2 306.1)
XYZxyz(16.5437, 8.8953, 42.4319)
Luminance0.0890 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782BB1 #64B12B
analogous
#352BB1 #782BB1 #B12BA7
triadic
#782BB1 #B1782B #2BB178
tetradic
#782BB1 #B1352B #64B12B #2BA7B1
square
#782BB1 #B1352B #64B12B #2BA7B1
split-complementary
#782BB1 #A7B12B #2BB135
monochromatic
#35134F #571F80 #782BB1 #9747D2 #B378DE

Accessibility & contrast

On white

7.56
#782BB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#782BB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782BB1
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782BB1#FFFFFF#000000##FFFFFF
##782BB11.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B5
Deuteranopia (green-blind)
#0054AE
Tritanopia (blue-blind)
#6E4C6C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #782bb1;
/* rgb */ color: rgb(120, 43, 177);
/* oklch */ color: oklch(47.2% 0.200 306.1);
Tailwind
colors: {
  custom: {
    50: '#a46dc9',
    500: '#782bb1',
    950: '#000000',
  },
}
SCSS
$custom: #782bb1;
$custom-light: #a46dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#782bb1",
  "rgb": {
    "r": 120,
    "g": 43,
    "b": 177
  },
  "hsl": {
    "h": 274.478,
    "s": 60.909,
    "l": 43.137
  },
  "oklch": {
    "l": 0.47159,
    "c": 0.20003,
    "h": 306.1
  },
  "luminance": 0.08895
}

Semantic roles & 50–950 ramp

primary
#782BB1
secondary
#96C672
accent
#E44488
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #782BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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