#782AB3#782AB3

#782AB3 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.2% C 0.203 H 305.7°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#782AB3
RGBrgb(120, 42, 179)
HSLhsl(274, 62%, 43%)
HSVhsv(274, 77%, 70%)
CMYKcmyk(33%, 76.5%, 0%, 29.8%)
CIE-LABlab(35.80, 56.83, -57.97)
CIE-LCHlch(35.80, 81.18, 314.43°)
OKLaboklab(47.22% 0.1184 -0.165)
OKLCHoklch(47.22% 0.203 305.7)
XYZxyz(16.7086, 8.9038, 43.4775)
Luminance0.0890 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782AB3 #65B32A
analogous
#342AB3 #782AB3 #B32AA9
triadic
#782AB3 #B3782A #2AB378
tetradic
#782AB3 #B3342A #65B32A #2AA9B3
square
#782AB3 #B3342A #65B32A #2AA9B3
split-complementary
#782AB3 #A9B32A #2AB334
monochromatic
#361350 #571E81 #782AB3 #9746D4 #B378DF

Accessibility & contrast

On white

7.55
#782AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#782AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782AB3
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782AB3#FFFFFF#000000##FFFFFF
##782AB31.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B7
Deuteranopia (green-blind)
#0054B0
Tritanopia (blue-blind)
#6D4D6D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #782ab3;
/* rgb */ color: rgb(120, 42, 179);
/* oklch */ color: oklch(47.2% 0.203 305.7);
Tailwind
colors: {
  custom: {
    50: '#a46ccb',
    500: '#782ab3',
    950: '#000000',
  },
}
SCSS
$custom: #782ab3;
$custom-light: #a46ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#782ab3",
  "rgb": {
    "r": 120,
    "g": 42,
    "b": 179
  },
  "hsl": {
    "h": 274.161,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.47219,
    "c": 0.20306,
    "h": 305.7
  },
  "luminance": 0.08904
}

Semantic roles & 50–950 ramp

primary
#782AB3
secondary
#96C772
accent
#E54389
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #782AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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