#782BB6#782BB6

#782BB6 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.6% C 0.205 H 304.7°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#782BB6
RGBrgb(120, 43, 182)
HSLhsl(273, 62%, 44%)
HSVhsv(273, 76%, 71%)
CMYKcmyk(34.1%, 76.4%, 0%, 28.6%)
CIE-LABlab(36.17, 57.11, -59.14)
CIE-LCHlch(36.17, 82.21, 314.00°)
OKLaboklab(47.56% 0.1168 -0.1684)
OKLCHoklch(47.56% 0.205 304.7)
XYZxyz(17.0512, 9.0983, 45.1048)
Luminance0.0910 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782BB6 #69B62B
analogous
#322BB6 #782BB6 #B62BAF
triadic
#782BB6 #B6782B #2BB678
tetradic
#782BB6 #B6322B #69B62B #2BAFB6
square
#782BB6 #B6322B #69B62B #2BAFB6
split-complementary
#782BB6 #AFB62B #2BB632
monochromatic
#371453 #571F84 #782BB6 #974AD4 #B37BE0

Accessibility & contrast

On white

7.45
#782BB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#782BB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782BB6
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782BB6#FFFFFF#000000##FFFFFF
##782BB61.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BA
Deuteranopia (green-blind)
#0055B3
Tritanopia (blue-blind)
#6C4E6F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #782bb6;
/* rgb */ color: rgb(120, 43, 182);
/* oklch */ color: oklch(47.6% 0.205 304.7);
Tailwind
colors: {
  custom: {
    50: '#a56dcd',
    500: '#782bb6',
    950: '#000000',
  },
}
SCSS
$custom: #782bb6;
$custom-light: #a56dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#782bb6",
  "rgb": {
    "r": 120,
    "g": 43,
    "b": 182
  },
  "hsl": {
    "h": 273.237,
    "s": 61.778,
    "l": 44.118
  },
  "oklch": {
    "l": 0.47556,
    "c": 0.20498,
    "h": 304.7
  },
  "luminance": 0.09098
}

Semantic roles & 50–950 ramp

primary
#782BB6
secondary
#9AC875
accent
#E5438B
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #782BB6

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

Preview Lab → · Contrast checker → · Palette generator →

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