#782DB3#782DB3

#782DB3 is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.5% C 0.200 H 305.4°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#782DB3
RGBrgb(120, 45, 179)
HSLhsl(274, 60%, 44%)
HSVhsv(274, 75%, 70%)
CMYKcmyk(33%, 74.9%, 0%, 29.8%)
CIE-LABlab(36.22, 55.61, -57.28)
CIE-LCHlch(36.22, 79.83, 314.15°)
OKLaboklab(47.52% 0.1157 -0.163)
OKLCHoklch(47.52% 0.2 305.4)
XYZxyz(16.8190, 9.1246, 43.5143)
Luminance0.0912 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782DB3 #68B32D
analogous
#352DB3 #782DB3 #B32DAB
triadic
#782DB3 #B3782D #2DB378
tetradic
#782DB3 #B3352D #68B32D #2DABB3
square
#782DB3 #B3352D #68B32D #2DABB3
split-complementary
#782DB3 #ABB32D #2DB335
monochromatic
#361451 #572182 #782DB3 #974BD2 #B37CDE

Accessibility & contrast

On white

7.43
#782DB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#782DB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782DB3
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782DB3#FFFFFF#000000##FFFFFF
##782DB31.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #782db3;
/* rgb */ color: rgb(120, 45, 179);
/* oklch */ color: oklch(47.5% 0.200 305.4);
Tailwind
colors: {
  custom: {
    50: '#a46ecb',
    500: '#782db3',
    950: '#000000',
  },
}
SCSS
$custom: #782db3;
$custom-light: #a46ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#782db3",
  "rgb": {
    "r": 120,
    "g": 45,
    "b": 179
  },
  "hsl": {
    "h": 273.582,
    "s": 59.821,
    "l": 43.922
  },
  "oklch": {
    "l": 0.47518,
    "c": 0.19985,
    "h": 305.4
  },
  "luminance": 0.09125
}

Semantic roles & 50–950 ramp

primary
#782DB3
secondary
#99C775
accent
#E3458A
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #782DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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