#782BB0#782BB0

#782BB0 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 47.1% C 0.199 H 306.4°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#782BB0
RGBrgb(120, 43, 176)
HSLhsl(275, 61%, 43%)
HSVhsv(275, 76%, 69%)
CMYKcmyk(31.8%, 75.6%, 0%, 31%)
CIE-LABlab(35.70, 55.74, -56.34)
CIE-LCHlch(35.70, 79.25, 314.70°)
OKLaboklab(47.08% 0.1181 -0.1602)
OKLCHoklch(47.08% 0.199 306.4)
XYZxyz(16.4444, 8.8556, 41.9089)
Luminance0.0886 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782BB0 #63B02B
analogous
#352BB0 #782BB0 #B02BA5
triadic
#782BB0 #B0782B #2BB078
tetradic
#782BB0 #B0352B #63B02B #2BA5B0
square
#782BB0 #B0352B #63B02B #2BA5B0
split-complementary
#782BB0 #A5B02B #2BB035
monochromatic
#35134E #561F7F #782BB0 #9746D2 #B378DE

Accessibility & contrast

On white

7.58
#782BB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#782BB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782BB0
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782BB0#FFFFFF#000000##FFFFFF
##782BB01.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B4
Deuteranopia (green-blind)
#0054AD
Tritanopia (blue-blind)
#6E4C6C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #782bb0;
/* rgb */ color: rgb(120, 43, 176);
/* oklch */ color: oklch(47.1% 0.199 306.4);
Tailwind
colors: {
  custom: {
    50: '#a46cc8',
    500: '#782bb0',
    950: '#000000',
  },
}
SCSS
$custom: #782bb0;
$custom-light: #a46cc8;
$custom-dark: #000000;
JSON
{
  "hex": "#782bb0",
  "rgb": {
    "r": 120,
    "g": 43,
    "b": 176
  },
  "hsl": {
    "h": 274.737,
    "s": 60.731,
    "l": 42.941
  },
  "oklch": {
    "l": 0.4708,
    "c": 0.19904,
    "h": 306.4
  },
  "luminance": 0.08855
}

Semantic roles & 50–950 ramp

primary
#782BB0
secondary
#95C671
accent
#E44487
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #782BB0

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

Preview Lab → · Contrast checker → · Palette generator →

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