#782CB8#782CB8

#782CB8 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.8% C 0.206 H 304.1°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#782CB8
RGBrgb(120, 44, 184)
HSLhsl(273, 61%, 45%)
HSVhsv(273, 76%, 72%)
CMYKcmyk(34.8%, 76.1%, 0%, 27.8%)
CIE-LABlab(36.47, 57.17, -59.83)
CIE-LCHlch(36.47, 82.76, 313.70°)
OKLaboklab(47.81% 0.1155 -0.1705)
OKLCHoklch(47.81% 0.206 304.1)
XYZxyz(17.2961, 9.2552, 46.2133)
Luminance0.0925 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782CB8 #6CB82C
analogous
#322CB8 #782CB8 #B82CB2
triadic
#782CB8 #B8782C #2CB878
tetradic
#782CB8 #B8322C #6CB82C #2CB2B8
square
#782CB8 #B8322C #6CB82C #2CB2B8
split-complementary
#782CB8 #B2B82C #2CB832
monochromatic
#381455 #582087 #782CB8 #964DD4 #B37EE0

Accessibility & contrast

On white

7.37
#782CB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#782CB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782CB8
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782CB8#FFFFFF#000000##FFFFFF
##782CB81.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BC
Deuteranopia (green-blind)
#0056B5
Tritanopia (blue-blind)
#6B5071
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #782cb8;
/* rgb */ color: rgb(120, 44, 184);
/* oklch */ color: oklch(47.8% 0.206 304.1);
Tailwind
colors: {
  custom: {
    50: '#a56dce',
    500: '#782cb8',
    950: '#000000',
  },
}
SCSS
$custom: #782cb8;
$custom-light: #a56dce;
$custom-dark: #000000;
JSON
{
  "hex": "#782cb8",
  "rgb": {
    "r": 120,
    "g": 44,
    "b": 184
  },
  "hsl": {
    "h": 272.571,
    "s": 61.404,
    "l": 44.706
  },
  "oklch": {
    "l": 0.47814,
    "c": 0.20592,
    "h": 304.1
  },
  "luminance": 0.09255
}

Semantic roles & 50–950 ramp

primary
#782CB8
secondary
#9CC977
accent
#E5438D
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #782CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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