#782BB5#782BB5

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

Color values

HEX#782BB5
RGBrgb(120, 43, 181)
HSLhsl(273, 62%, 44%)
HSVhsv(273, 76%, 71%)
CMYKcmyk(33.7%, 76.2%, 0%, 29%)
CIE-LABlab(36.09, 56.88, -58.67)
CIE-LCHlch(36.09, 81.72, 314.11°)
OKLaboklab(47.48% 0.1171 -0.1671)
OKLCHoklch(47.48% 0.204 305)
XYZxyz(16.9482, 9.0571, 44.5624)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782BB5 #68B52B
analogous
#332BB5 #782BB5 #B52BAD
triadic
#782BB5 #B5782B #2BB578
tetradic
#782BB5 #B5332B #68B52B #2BADB5
square
#782BB5 #B5332B #68B52B #2BADB5
split-complementary
#782BB5 #ADB52B #2BB533
monochromatic
#361452 #571F84 #782BB5 #9749D4 #B37BE0

Accessibility & contrast

On white

7.47
#782BB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#782BB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782BB5
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782BB5#FFFFFF#000000##FFFFFF
##782BB51.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B9
Deuteranopia (green-blind)
#0055B2
Tritanopia (blue-blind)
#6C4E6F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #782bb5;
/* rgb */ color: rgb(120, 43, 181);
/* oklch */ color: oklch(47.5% 0.204 305.0);
Tailwind
colors: {
  custom: {
    50: '#a56dcc',
    500: '#782bb5',
    950: '#000000',
  },
}
SCSS
$custom: #782bb5;
$custom-light: #a56dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#782bb5",
  "rgb": {
    "r": 120,
    "g": 43,
    "b": 181
  },
  "hsl": {
    "h": 273.478,
    "s": 61.607,
    "l": 43.922
  },
  "oklch": {
    "l": 0.47476,
    "c": 0.20398,
    "h": 305
  },
  "luminance": 0.09057
}

Semantic roles & 50–950 ramp

primary
#782BB5
secondary
#99C874
accent
#E5438B
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #782BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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