#782BB3#782BB3

#782BB3 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.3% C 0.202 H 305.6°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#782BB3
RGBrgb(120, 43, 179)
HSLhsl(274, 61%, 44%)
HSVhsv(274, 76%, 70%)
CMYKcmyk(33%, 76%, 0%, 29.8%)
CIE-LABlab(35.94, 56.43, -57.74)
CIE-LCHlch(35.94, 80.74, 314.34°)
OKLaboklab(47.32% 0.1175 -0.1643)
OKLCHoklch(47.32% 0.202 305.6)
XYZxyz(16.7445, 8.9756, 43.4894)
Luminance0.0897 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782BB3 #66B32B
analogous
#342BB3 #782BB3 #B32BAA
triadic
#782BB3 #B3782B #2BB378
tetradic
#782BB3 #B3342B #66B32B #2BAAB3
square
#782BB3 #B3342B #66B32B #2BAAB3
split-complementary
#782BB3 #AAB32B #2BB334
monochromatic
#361350 #571F82 #782BB3 #9748D3 #B379DF

Accessibility & contrast

On white

7.51
#782BB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#782BB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782BB3
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782BB3#FFFFFF#000000##FFFFFF
##782BB31.007.512.797.51
#FFFFFF7.511.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B7
Deuteranopia (green-blind)
#0055B0
Tritanopia (blue-blind)
#6D4D6E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #782bb3;
/* rgb */ color: rgb(120, 43, 179);
/* oklch */ color: oklch(47.3% 0.202 305.6);
Tailwind
colors: {
  custom: {
    50: '#a46dcb',
    500: '#782bb3',
    950: '#000000',
  },
}
SCSS
$custom: #782bb3;
$custom-light: #a46dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#782bb3",
  "rgb": {
    "r": 120,
    "g": 43,
    "b": 179
  },
  "hsl": {
    "h": 273.971,
    "s": 61.261,
    "l": 43.529
  },
  "oklch": {
    "l": 0.47317,
    "c": 0.20202,
    "h": 305.6
  },
  "luminance": 0.08975
}

Semantic roles & 50–950 ramp

primary
#782BB3
secondary
#97C773
accent
#E44389
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #782BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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