#782EBB#782EBB

#782EBB is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.3% C 0.207 H 303.1°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#782EBB
RGBrgb(120, 46, 187)
HSLhsl(271, 61%, 46%)
HSVhsv(271, 75%, 73%)
CMYKcmyk(35.8%, 75.4%, 0%, 26.7%)
CIE-LABlab(36.99, 57.05, -60.75)
CIE-LCHlch(36.99, 83.34, 313.20°)
OKLaboklab(48.26% 0.113 -0.1732)
OKLCHoklch(48.26% 0.207 303.1)
XYZxyz(17.6903, 9.5349, 47.9125)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782EBB #71BB2E
analogous
#312EBB #782EBB #BB2EB7
triadic
#782EBB #BB782E #2EBB78
tetradic
#782EBB #BB312E #71BB2E #2EB7BB
square
#782EBB #BB312E #71BB2E #2EB7BB
split-complementary
#782EBB #B7BB2E #2EBB31
monochromatic
#391659 #58228A #782EBB #9652D4 #B483E0

Accessibility & contrast

On white

7.22
#782EBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#782EBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782EBB
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782EBB#FFFFFF#000000##FFFFFF
##782EBB1.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BF
Deuteranopia (green-blind)
#0057B8
Tritanopia (blue-blind)
#6A5273
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #782ebb;
/* rgb */ color: rgb(120, 46, 187);
/* oklch */ color: oklch(48.3% 0.207 303.1);
Tailwind
colors: {
  custom: {
    50: '#a56ed0',
    500: '#782ebb',
    950: '#000000',
  },
}
SCSS
$custom: #782ebb;
$custom-light: #a56ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#782ebb",
  "rgb": {
    "r": 120,
    "g": 46,
    "b": 187
  },
  "hsl": {
    "h": 271.489,
    "s": 60.515,
    "l": 45.686
  },
  "oklch": {
    "l": 0.48257,
    "c": 0.20682,
    "h": 303.1
  },
  "luminance": 0.09535
}

Semantic roles & 50–950 ramp

primary
#782EBB
secondary
#A0CA7B
accent
#E44490
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #782EBB

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

Preview Lab → · Contrast checker → · Palette generator →

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