#782AB2#782AB2

#782AB2 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.1% C 0.202 H 305.9°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#782AB2
RGBrgb(120, 42, 178)
HSLhsl(274, 62%, 43%)
HSVhsv(274, 76%, 70%)
CMYKcmyk(32.6%, 76.4%, 0%, 30.2%)
CIE-LABlab(35.72, 56.60, -57.50)
CIE-LCHlch(35.72, 80.68, 314.55°)
OKLaboklab(47.14% 0.1186 -0.1636)
OKLCHoklch(47.14% 0.202 305.9)
XYZxyz(16.6078, 8.8635, 42.9468)
Luminance0.0886 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782AB2 #64B22A
analogous
#342AB2 #782AB2 #B22AA8
triadic
#782AB2 #B2782A #2AB278
tetradic
#782AB2 #B2342A #64B22A #2AA8B2
square
#782AB2 #B2342A #64B22A #2AA8B2
split-complementary
#782AB2 #A8B22A #2AB234
monochromatic
#35134F #571E80 #782AB2 #9746D3 #B377DF

Accessibility & contrast

On white

7.57
#782AB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#782AB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782AB2
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782AB2#FFFFFF#000000##FFFFFF
##782AB21.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B6
Deuteranopia (green-blind)
#0054AF
Tritanopia (blue-blind)
#6E4C6D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #782ab2;
/* rgb */ color: rgb(120, 42, 178);
/* oklch */ color: oklch(47.1% 0.202 305.9);
Tailwind
colors: {
  custom: {
    50: '#a46cca',
    500: '#782ab2',
    950: '#000000',
  },
}
SCSS
$custom: #782ab2;
$custom-light: #a46cca;
$custom-dark: #000000;
JSON
{
  "hex": "#782ab2",
  "rgb": {
    "r": 120,
    "g": 42,
    "b": 178
  },
  "hsl": {
    "h": 274.412,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.47139,
    "c": 0.20208,
    "h": 305.9
  },
  "luminance": 0.08863
}

Semantic roles & 50–950 ramp

primary
#782AB2
secondary
#96C771
accent
#E54388
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #782AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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