#782CB9#782CB9

#782CB9 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.9% C 0.207 H 303.9°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#782CB9
RGBrgb(120, 44, 185)
HSLhsl(272, 62%, 45%)
HSVhsv(272, 76%, 73%)
CMYKcmyk(35.1%, 76.2%, 0%, 27.5%)
CIE-LABlab(36.55, 57.40, -60.30)
CIE-LCHlch(36.55, 83.25, 313.59°)
OKLaboklab(47.9% 0.1153 -0.1718)
OKLCHoklch(47.9% 0.207 303.9)
XYZxyz(17.4013, 9.2973, 46.7673)
Luminance0.0930 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782CB9 #6DB92C
analogous
#312CB9 #782CB9 #B92CB4
triadic
#782CB9 #B9782C #2CB978
tetradic
#782CB9 #B9312C #6DB92C #2CB4B9
square
#782CB9 #B9312C #6DB92C #2CB4B9
split-complementary
#782CB9 #B4B92C #2CB931
monochromatic
#381456 #582088 #782CB9 #964DD5 #B47FE1

Accessibility & contrast

On white

7.34
#782CB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#782CB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782CB9
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782CB9#FFFFFF#000000##FFFFFF
##782CB91.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #782cb9;
/* rgb */ color: rgb(120, 44, 185);
/* oklch */ color: oklch(47.9% 0.207 303.9);
Tailwind
colors: {
  custom: {
    50: '#a56dcf',
    500: '#782cb9',
    950: '#000000',
  },
}
SCSS
$custom: #782cb9;
$custom-light: #a56dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#782cb9",
  "rgb": {
    "r": 120,
    "g": 44,
    "b": 185
  },
  "hsl": {
    "h": 272.34,
    "s": 61.572,
    "l": 44.902
  },
  "oklch": {
    "l": 0.47895,
    "c": 0.20692,
    "h": 303.9
  },
  "luminance": 0.09297
}

Semantic roles & 50–950 ramp

primary
#782CB9
secondary
#9DC978
accent
#E5438E
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #782CB9

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

Preview Lab → · Contrast checker → · Palette generator →

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