#782CB4#782CB4

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

Color values

HEX#782CB4
RGBrgb(120, 44, 180)
HSLhsl(274, 61%, 44%)
HSVhsv(274, 76%, 71%)
CMYKcmyk(33.3%, 75.6%, 0%, 29.4%)
CIE-LABlab(36.16, 56.25, -57.98)
CIE-LCHlch(36.16, 80.78, 314.13°)
OKLaboklab(47.5% 0.1164 -0.165)
OKLCHoklch(47.5% 0.202 305.2)
XYZxyz(16.8828, 9.0898, 44.0363)
Luminance0.0909 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782CB4 #68B42C
analogous
#342CB4 #782CB4 #B42CAC
triadic
#782CB4 #B4782C #2CB478
tetradic
#782CB4 #B4342C #68B42C #2CACB4
square
#782CB4 #B4342C #68B42C #2CACB4
split-complementary
#782CB4 #ACB42C #2CB434
monochromatic
#361452 #572083 #782CB4 #974AD3 #B37CDF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##782CB4#FFFFFF#000000##FFFFFF
##782CB41.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)
#0053B8
Deuteranopia (green-blind)
#0055B1
Tritanopia (blue-blind)
#6D4E6E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #782cb4;
/* rgb */ color: rgb(120, 44, 180);
/* oklch */ color: oklch(47.5% 0.202 305.2);
Tailwind
colors: {
  custom: {
    50: '#a46dcb',
    500: '#782cb4',
    950: '#000000',
  },
}
SCSS
$custom: #782cb4;
$custom-light: #a46dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#782cb4",
  "rgb": {
    "r": 120,
    "g": 44,
    "b": 180
  },
  "hsl": {
    "h": 273.529,
    "s": 60.714,
    "l": 43.922
  },
  "oklch": {
    "l": 0.47495,
    "c": 0.20194,
    "h": 305.2
  },
  "luminance": 0.0909
}

Semantic roles & 50–950 ramp

primary
#782CB4
secondary
#99C775
accent
#E4448A
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #782CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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