#782BB7#782BB7

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

Color values

HEX#782BB7
RGBrgb(120, 43, 183)
HSLhsl(273, 62%, 44%)
HSVhsv(273, 77%, 72%)
CMYKcmyk(34.4%, 76.5%, 0%, 28.2%)
CIE-LABlab(36.25, 57.34, -59.60)
CIE-LCHlch(36.25, 82.71, 313.89°)
OKLaboklab(47.64% 0.1166 -0.1698)
OKLCHoklch(47.64% 0.206 304.5)
XYZxyz(17.1549, 9.1398, 45.6510)
Luminance0.0914 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782BB7 #6AB72B
analogous
#322BB7 #782BB7 #B72BB0
triadic
#782BB7 #B7782B #2BB778
tetradic
#782BB7 #B7322B #6AB72B #2BB0B7
square
#782BB7 #B7322B #6AB72B #2BB0B7
split-complementary
#782BB7 #B0B72B #2BB732
monochromatic
#371454 #581F85 #782BB7 #974BD5 #B37CE0

Accessibility & contrast

On white

7.43
#782BB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#782BB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782BB7
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782BB7#FFFFFF#000000##FFFFFF
##782BB71.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BB
Deuteranopia (green-blind)
#0055B4
Tritanopia (blue-blind)
#6C4F70
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #782bb7;
/* rgb */ color: rgb(120, 43, 183);
/* oklch */ color: oklch(47.6% 0.206 304.5);
Tailwind
colors: {
  custom: {
    50: '#a56dce',
    500: '#782bb7',
    950: '#000000',
  },
}
SCSS
$custom: #782bb7;
$custom-light: #a56dce;
$custom-dark: #000000;
JSON
{
  "hex": "#782bb7",
  "rgb": {
    "r": 120,
    "g": 43,
    "b": 183
  },
  "hsl": {
    "h": 273,
    "s": 61.947,
    "l": 44.314
  },
  "oklch": {
    "l": 0.47636,
    "c": 0.20597,
    "h": 304.5
  },
  "luminance": 0.0914
}

Semantic roles & 50–950 ramp

primary
#782BB7
secondary
#9BC975
accent
#E5438C
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #782BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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