#782BB8#782BB8

#782BB8 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.7% C 0.207 H 304.2°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#782BB8
RGBrgb(120, 43, 184)
HSLhsl(273, 62%, 45%)
HSVhsv(273, 77%, 72%)
CMYKcmyk(34.8%, 76.6%, 0%, 27.8%)
CIE-LABlab(36.33, 57.57, -60.06)
CIE-LCHlch(36.33, 83.20, 313.79°)
OKLaboklab(47.72% 0.1164 -0.1711)
OKLCHoklch(47.72% 0.207 304.2)
XYZxyz(17.2593, 9.1816, 46.2011)
Luminance0.0918 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782BB8 #6BB82B
analogous
#312BB8 #782BB8 #B82BB2
triadic
#782BB8 #B8782B #2BB878
tetradic
#782BB8 #B8312B #6BB82B #2BB2B8
square
#782BB8 #B8312B #6BB82B #2BB2B8
split-complementary
#782BB8 #B2B82B #2BB831
monochromatic
#371455 #581F86 #782BB8 #964BD5 #B37DE1

Accessibility & contrast

On white

7.40
#782BB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#782BB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782BB8
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782BB8#FFFFFF#000000##FFFFFF
##782BB81.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BC
Deuteranopia (green-blind)
#0055B5
Tritanopia (blue-blind)
#6B4F70
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #782bb8;
/* rgb */ color: rgb(120, 43, 184);
/* oklch */ color: oklch(47.7% 0.207 304.2);
Tailwind
colors: {
  custom: {
    50: '#a56dce',
    500: '#782bb8',
    950: '#000000',
  },
}
SCSS
$custom: #782bb8;
$custom-light: #a56dce;
$custom-dark: #000000;
JSON
{
  "hex": "#782bb8",
  "rgb": {
    "r": 120,
    "g": 43,
    "b": 184
  },
  "hsl": {
    "h": 272.766,
    "s": 62.115,
    "l": 44.51
  },
  "oklch": {
    "l": 0.47717,
    "c": 0.20695,
    "h": 304.2
  },
  "luminance": 0.09182
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #782BB8

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

Preview Lab → · Contrast checker → · Palette generator →

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