#782BBB#782BBB

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

Color values

HEX#782BBB
RGBrgb(120, 43, 187)
HSLhsl(272, 63%, 45%)
HSVhsv(272, 77%, 73%)
CMYKcmyk(35.8%, 77%, 0%, 26.7%)
CIE-LABlab(36.57, 58.26, -61.44)
CIE-LCHlch(36.57, 84.67, 313.48°)
OKLaboklab(47.96% 0.1156 -0.1752)
OKLCHoklch(47.96% 0.21 303.4)
XYZxyz(17.5771, 9.3087, 47.8748)
Luminance0.0931 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782BBB #6EBB2B
analogous
#302BBB #782BBB #BB2BB6
triadic
#782BBB #BB782B #2BBB78
tetradic
#782BBB #BB302B #6EBB2B #2BB6BB
square
#782BBB #BB302B #6EBB2B #2BB6BB
split-complementary
#782BBB #B6BB2B #2BBB30
monochromatic
#381457 #582089 #782BBB #964DD6 #B47FE2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##782BBB#FFFFFF#000000##FFFFFF
##782BBB1.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)
#0055BF
Deuteranopia (green-blind)
#0056B8
Tritanopia (blue-blind)
#6A5072
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #782bbb;
/* rgb */ color: rgb(120, 43, 187);
/* oklch */ color: oklch(48.0% 0.210 303.4);
Tailwind
colors: {
  custom: {
    50: '#a56dd0',
    500: '#782bbb',
    950: '#000000',
  },
}
SCSS
$custom: #782bbb;
$custom-light: #a56dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#782bbb",
  "rgb": {
    "r": 120,
    "g": 43,
    "b": 187
  },
  "hsl": {
    "h": 272.083,
    "s": 62.609,
    "l": 45.098
  },
  "oklch": {
    "l": 0.4796,
    "c": 0.20992,
    "h": 303.4
  },
  "luminance": 0.09309
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #782BBB

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

Preview Lab → · Contrast checker → · Palette generator →

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