#782CBA#782CBA

#782CBA is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 48.0% C 0.208 H 303.6°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#782CBA
RGBrgb(120, 44, 186)
HSLhsl(272, 62%, 45%)
HSVhsv(272, 76%, 73%)
CMYKcmyk(35.5%, 76.3%, 0%, 27.1%)
CIE-LABlab(36.63, 57.63, -60.76)
CIE-LCHlch(36.63, 83.74, 313.49°)
OKLaboklab(47.98% 0.115 -0.1732)
OKLCHoklch(47.98% 0.208 303.6)
XYZxyz(17.5073, 9.3396, 47.3253)
Luminance0.0934 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782CBA #6EBA2C
analogous
#312CBA #782CBA #BA2CB5
triadic
#782CBA #BA782C #2CBA78
tetradic
#782CBA #BA312C #6EBA2C #2CB5BA
square
#782CBA #BA312C #6EBA2C #2CB5BA
split-complementary
#782CBA #B5BA2C #2CBA31
monochromatic
#381557 #582089 #782CBA #964ED5 #B480E1

Accessibility & contrast

On white

7.32
#782CBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#782CBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782CBA
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782CBA#FFFFFF#000000##FFFFFF
##782CBA1.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BE
Deuteranopia (green-blind)
#0056B7
Tritanopia (blue-blind)
#6B5072
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #782cba;
/* rgb */ color: rgb(120, 44, 186);
/* oklch */ color: oklch(48.0% 0.208 303.6);
Tailwind
colors: {
  custom: {
    50: '#a56dd0',
    500: '#782cba',
    950: '#000000',
  },
}
SCSS
$custom: #782cba;
$custom-light: #a56dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#782cba",
  "rgb": {
    "r": 120,
    "g": 44,
    "b": 186
  },
  "hsl": {
    "h": 272.113,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.47976,
    "c": 0.2079,
    "h": 303.6
  },
  "luminance": 0.0934
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #782CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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