#782DAF#782DAF

#782DAF is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.2% C 0.196 H 306.5°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#782DAF
RGBrgb(120, 45, 175)
HSLhsl(275, 59%, 43%)
HSVhsv(275, 74%, 69%)
CMYKcmyk(31.4%, 74.3%, 0%, 31.4%)
CIE-LABlab(35.92, 54.69, -55.40)
CIE-LCHlch(35.92, 77.85, 314.63°)
OKLaboklab(47.21% 0.1165 -0.1574)
OKLCHoklch(47.21% 0.196 306.5)
XYZxyz(16.4203, 8.9652, 41.4145)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782DAF #64AF2D
analogous
#372DAF #782DAF #AF2DA5
triadic
#782DAF #AF782D #2DAF78
tetradic
#782DAF #AF372D #64AF2D #2DA5AF
square
#782DAF #AF372D #64AF2D #2DA5AF
split-complementary
#782DAF #A5AF2D #2DAF37
monochromatic
#35144E #57207E #782DAF #9749D0 #B37ADD

Accessibility & contrast

On white

7.52
#782DAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #782DAF
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782DAF#FFFFFF#000000##FFFFFF
##782DAF1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B3
Deuteranopia (green-blind)
#0055AC
Tritanopia (blue-blind)
#6E4C6C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #782daf;
/* rgb */ color: rgb(120, 45, 175);
/* oklch */ color: oklch(47.2% 0.196 306.5);
Tailwind
colors: {
  custom: {
    50: '#a46dc8',
    500: '#782daf',
    950: '#000000',
  },
}
SCSS
$custom: #782daf;
$custom-light: #a46dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#782daf",
  "rgb": {
    "r": 120,
    "g": 45,
    "b": 175
  },
  "hsl": {
    "h": 274.615,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.47206,
    "c": 0.19584,
    "h": 306.5
  },
  "luminance": 0.08965
}

Semantic roles & 50–950 ramp

primary
#782DAF
secondary
#96C573
accent
#E24688
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #782DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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